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.7.0", 34}, {"0.6.0.6", 33}, {"0.6.0.5", 32}, {"0.6.0.2", 31}, {"0.6.0.1", 31},
17 {"0.6.0", 28}, {"0.5.0", 28}, {"0.4.2", 27}, {"0.4.1", 27}, {"0.4.0", 27},
18 {"0.3.2", 26}, {"0.3.1", 26}, {"0.3.0", 26}, {"0.2.1", 25}, {"0.2.0", 25},
19 {"0.1.0", 24}, {"0.0.12.3", 24}, {"0.0.12.2", 24}, {"0.0.12.1", 24}, {"0.0.12", 23},
20 {"0.0.11", 23}, {"0.0.10", 23}, {"0.0.9", 23}, {"0.0.8", 17}, {"0.0.7", 15},
21 {"0.0.6", 9}, {"0.0.5", 8}, {"0.0.4", 7}, {"0.0.3", 1}};
22 }
23
25
26 static constexpr const char* MAGIC_BYTES = "KUZU";
27};
28
29} // namespace storage
30} // namespace kuzu
#define KUZU_API
Definition api.h:25
uint64_t storage_version_t
Definition storage_version_info.h:12
Definition array_utils.h:7
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:26