Proper get_manager implementation

This commit is contained in:
topjohnwu
2022-05-19 02:39:57 -07:00
parent 34dded3b25
commit a29ae15ff7
3 changed files with 91 additions and 21 deletions

View File

@ -125,6 +125,7 @@ using db_row_cb = std::function<bool(db_row&)>;
int get_db_settings(db_settings &cfg, int key = -1);
int get_db_strings(db_strings &str, int key = -1);
void rm_db_strings(int key);
void exec_sql(int client);
char *db_exec(const char *sql);
char *db_exec(const char *sql, const db_row_cb &fn);