Saving to disk an in-memory database

前端 未结 3 774
情深已故
情深已故 2020-12-08 08:00

I made a database through sqlite in c++.

The db has been created in memory (using the \":memory:\" parameter insted of a filename), in order to have a very quick be

3条回答
  •  轮回少年
    2020-12-08 08:10

    Use transaction statement before doing anything to the table. This ensures fast handling and rollbacks as well. This way, you don't need to implement the database in memory directly.

提交回复
热议问题