Skip to content

Commit

Permalink
Add utilitiy to get sqlite3 connection handle directly, see fnc12#1000
Browse files Browse the repository at this point in the history
  • Loading branch information
florianfischerx committed Apr 8, 2022
1 parent fdcc1da commit 0d94f09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/sqlite_orm/sqlite_orm.h
Original file line number Diff line number Diff line change
Expand Up @@ -12280,6 +12280,10 @@ namespace sqlite_orm {
backup.step(-1);
}

sqlite3* getSQLite3ConnectionHandle() {
return this->get_connection().get();
}

void backup_from(const std::string& filename) {
auto backup = this->make_backup_from(filename);
backup.step(-1);
Expand Down

0 comments on commit 0d94f09

Please sign in to comment.