SQLite Forum


1 forum post by user pheroux

19:42 Post: Converting from sqlite to sqlite3 (artifact: 8c2e4bef0a user: pheroux)


I'm converting a piece of code from sqlite to sqlite3. I have a few questions:

  1. When creating a db you use to be able to pass a setup string. Is this no longer a thing in sqlite3?: For example, sql::db database (db_file, setup_str);

  2. What happened to transactions? I use to have to call begin_transaction(). For example, auto transaction (database.begin_transaction()); transaction.commit();

Thanks, -Phil