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
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.