refactor: rename DTree to DValue
This commit is contained in:
@@ -14,8 +14,8 @@ struct SQLite {
|
||||
bool connect(String path);
|
||||
void disconnect();
|
||||
String error();
|
||||
DTree query(String q);
|
||||
DTree query(String q, const StringMap& params);
|
||||
DValue query(String q);
|
||||
DValue query(String q, const StringMap& params);
|
||||
|
||||
// Unregisters from the request's connection tracking, so stack-allocated
|
||||
// instances cannot leave dangling pointers behind for request cleanup.
|
||||
@@ -25,14 +25,14 @@ private:
|
||||
void set_error(s32 code, String info = "");
|
||||
bool apply_default_pragmas();
|
||||
bool bind_params(void* statement, const StringMap& params);
|
||||
DTree collect_rows(void* statement);
|
||||
DValue collect_rows(void* statement);
|
||||
};
|
||||
|
||||
SQLite* sqlite_connect(String path);
|
||||
void sqlite_disconnect(SQLite* db);
|
||||
String sqlite_error(SQLite* db);
|
||||
DTree sqlite_query(SQLite* db, String q);
|
||||
DTree sqlite_query(SQLite* db, String q, const StringMap& params);
|
||||
DValue sqlite_query(SQLite* db, String q);
|
||||
DValue sqlite_query(SQLite* db, String q, const StringMap& params);
|
||||
u64 sqlite_insert_id(SQLite* db);
|
||||
u32 sqlite_affected_rows(SQLite* db);
|
||||
void cleanup_sqlite_connections();
|
||||
|
||||
Reference in New Issue
Block a user