| 387 | } |
| 388 | |
| 389 | bool SQLiteDatabase::HasActiveTxn() |
| 390 | { |
| 391 | // 'sqlite3_get_autocommit' returns true by default, and false if a transaction has begun and not been committed or rolled back. |
| 392 | return m_db && sqlite3_get_autocommit(m_db) == 0; |
| 393 | } |
| 394 | |
| 395 | int SQliteExecHandler::Exec(SQLiteDatabase& database, const std::string& statement) |
| 396 | { |
no outgoing calls