This commit is contained in:
Aaron Po
2026-04-01 21:35:02 -04:00
parent 35aa7bc0df
commit 248a51b35f
6 changed files with 82 additions and 71 deletions

View File

@@ -39,8 +39,14 @@ public:
/// @brief Closes the SQLite connection if initialized.
~SqliteDatabase();
/// @brief Opens the in-memory database and creates schema objects.
void Initialize();
/// @brief Opens the SQLite database at dbPath and creates schema objects.
void Initialize(const std::string &dbPath = ":memory:");
/// @brief Starts a database transaction for batched writes.
void BeginTransaction();
/// @brief Commits the active database transaction.
void CommitTransaction();
/// @brief Inserts a country row.
void InsertCountry(int id, const std::string &name, const std::string &iso2,