mardi 15 mars 2016

How to change journal mode in Sqlite using preprocessor macros at compile-time

As the question suggest, I want to compile Sqlite library with the option: journal_mode = OFF as well as synchronous = OFF.

I am trying to stop the journal mode creation (or use journal_mode = memory) as well as synchronous to measure Sqlite performance.

I know that PRAGMA synchronous = OFF and PRAGMA journal_mode = OFF can be used at runtime to do that but I need to do at compile time.

Is there any Sqlite preprocessor macro or flag to do that at compile time?

Any hint will be appreciated. Thank you

Aucun commentaire:

Enregistrer un commentaire