aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9e83d4963..c1eaa6849 100644
--- a/src/main.c
+++ b/src/main.c
@@ -515,6 +515,13 @@ int sqlite3_config(int op, ...){
}
#endif
+ case SQLITE_CONFIG_WORKER_THREADS: {
+ int n = va_arg(ap, int);
+ if( n>SQLITE_MAX_WORKER_THREADS ) n = SQLITE_MAX_WORKER_THREADS;
+ if( n>=0 ) sqlite3GlobalConfig.nWorker = n;
+ break;
+ }
+
default: {
rc = SQLITE_ERROR;
break;