I am currently doing amalgamation compilation of SQLite and target for low
computational power, portable, single thread devices.
The OS version used in these devices are the very simplified version of
Linux OS. More specifically, it does not have pthread, mutex and
mutli-threading related functions. it has its own specific file system.
Hence to let the SQLite compiles successfully, I set the following MACRO
I would like to know
1. Can I call sqlite3_open more than one times before calling sqlite3_close
2. If the above mentioned devices change to mutli-thread setting but no
thread safe functions such as mutex, is this setting still fine?
If not, how can I make it thread safe with lack of mutex support in
> 1. Can I call sqlite3_open more than one times before calling sqlite3_close
> and sqlite3_free?
Call sqlite3_open() for each database you want to open. You can have any number of databases open at the same time. Call sqlite3_close() for each database you have open when you no longer need it. After closing the last connection call sqlite3_shutdown() as described in