I understand that someone uses SQLite in their trading experts. Reading the SQLite documentation I didn’t understand one thing:
A call to sqlite3_initialize() is an “effective” call if it is
the first time sqlite3_initialize() is invoked during the lifetime of
the process, or if it is the first time sqlite3_initialize() is invoked
following a call to sqlite3_shutdown(). Only an effective call
of sqlite3_initialize() does any initialization. All other calls
are harmless no-ops.
A call to sqlite3_shutdown() is an “effective” call if it is the first
call to sqlite3_shutdown() since the last sqlite3_initialize(). Only
an effective call to sqlite3_shutdown() does any deinitialization.
All other valid calls to sqlite3_shutdown() are harmless no-ops.
As I understand it, sqlite3_initialize() and sqlite3_shutdown() are dB initialization and deinitialization, respectively. But I couldn’t even imagine why. In theory, the database has all the data that you need to get, and if not, they will be recorded in the process. Then why initialize it? I hope there is someone here to discuss this with. Then so far everything is clear. It is clear that you can score not not use these methods, but as an option to understand the need or non-need, and not just score.