Use finer grain sqlite3 APIs

This commit is contained in:
topjohnwu
2024-12-29 02:48:05 -08:00
committed by John Wu
parent e73ff679ac
commit 10e47248de
3 changed files with 138 additions and 81 deletions

View File

@@ -129,6 +129,7 @@ struct owned_fd;
struct db_result {
db_result() = default;
db_result(const char *s) : err(s) {}
db_result(int code);
bool check_err();
operator bool() { return err.empty(); }
private: