15 #ifndef SHAKA_EMBEDDED_JS_IDB_SQLITE_H 16 #define SHAKA_EMBEDDED_JS_IDB_SQLITE_H 68 DatabaseStatus CreateDb(
const std::string& db_name, int64_t version);
69 DatabaseStatus UpdateDbVersion(
const std::string& db_name, int64_t version);
71 DatabaseStatus GetDbVersion(
const std::string& db_name, int64_t* version);
74 const std::string& store_name);
76 const std::string& store_name);
78 std::vector<std::string>* names);
82 const std::string& store_name,
83 const std::vector<uint8_t>& data, int64_t* key);
86 const std::string& store_name, int64_t key,
87 std::vector<uint8_t>* data);
93 const std::string& store_name, int64_t key,
94 const std::vector<uint8_t>& data);
97 const std::string& store_name, int64_t key);
101 bool ascending, int64_t* found_key);
108 const std::string& store_name, int64_t* store_id);
158 const std::string path_;
161 std::atomic<sqlite3*> db_;
168 #endif // SHAKA_EMBEDDED_JS_IDB_SQLITE_H
#define SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE(Type)
#define SHAKA_NON_COPYABLE_TYPE(Type)