Kùzu C++ API
Loading...
Searching...
No Matches
storage_version_info.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <string>
5#include <unordered_map>
6
7#include "api.h"
8
9namespace kuzu {
10namespace storage {
11
12using storage_version_t = uint64_t;
13
15 static std::unordered_map<std::string, storage_version_t> getStorageVersionInfo() {
16 return {{"0.6.0", 28}, {"0.5.0", 28}, {"0.4.2", 27}, {"0.4.1", 27}, {"0.4.0", 27},
17 {"0.3.2", 26}, {"0.3.1", 26}, {"0.3.0", 26}, {"0.2.1", 25}, {"0.2.0", 25},
18 {"0.1.0", 24}, {"0.0.12.3", 24}, {"0.0.12.2", 24}, {"0.0.12.1", 24}, {"0.0.12", 23},
19 {"0.0.11", 23}, {"0.0.10", 23}, {"0.0.9", 23}, {"0.0.8", 17}, {"0.0.7", 15},
20 {"0.0.6", 9}, {"0.0.5", 8}, {"0.0.4", 7}, {"0.0.3", 1}};
21 }
22
24
25 static constexpr const char* MAGIC_BYTES = "KUZU";
26};
27
28} // namespace storage
29} // namespace kuzu
#define KUZU_API
Definition api.h:25
uint64_t storage_version_t
Definition storage_version_info.h:12
Definition alter_type.h:5
Definition storage_version_info.h:14
static KUZU_API storage_version_t getStorageVersion()
static std::unordered_map< std::string, storage_version_t > getStorageVersionInfo()
Definition storage_version_info.h:15
static constexpr const char * MAGIC_BYTES
Definition storage_version_info.h:25