How to check SQLite streaming mode?

Can I check the streaming mode of an active SQLite connection? I know about sqlite3_threadsafe(), but

The return value of the sqlite3_threadsafe () function shows only temporary thread security settings, and not the runtime changes made to sqlite3_config () for this parameter.

+3
source share
2 answers

Here is a partial answer:

sqlite3_mutex *sqlite3_db_mutex(sqlite3*);

sqlite3_mutex, , - . - , NULL.

Single-thread Multi-thread...

0

, . . , :

sqlite3_mutex NULL, .

, :

(sqlite3_threadsafe, sqlite3_mutex):

(0, NULL): Single-thread

(1, NULL): Mutli-thread

(1, ):

0

Source: https://habr.com/ru/post/1774465/


All Articles