aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-07-08 17:02:57 +0000
committerdrh <drh@noemail.net>2011-07-08 17:02:57 +0000
commit6f25e89d27072d8abcd481e8e58176ebfd8ff63c (patch)
tree84bb5b4df0abaa06f29b8c6dca231c452298217b /src/shell.c
parentda79cf0cc9cc00588782f771b76b087460507586 (diff)
downloadsqlite-6f25e89d27072d8abcd481e8e58176ebfd8ff63c.tar.gz
sqlite-6f25e89d27072d8abcd481e8e58176ebfd8ff63c.zip
Change the default chunk size on test_multiplex.c to 2147418112 bytes
(formerly 1073741824 bytes) and make the default configurable at compile-time using SQLITE_MULTIPLEX_CHUNK_SIZE and at run-time using the "chunksize" URI query parameter. Add support fo test_multiplex to the shell. FossilOrigin-Name: e305b5a931374e2a1d2e66ea0a1248b9d4aecb19
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index a54c922e8..05272b2df 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -2632,6 +2632,9 @@ static const char zOptions[] =
#ifdef SQLITE_ENABLE_VFSTRACE
" -vfstrace enable tracing of all VFS calls\n"
#endif
+#ifdef SQLITE_ENABLE_MULTIPLEX
+ " -multiplex enable the multiplexor VFS\n"
+#endif
;
static void usage(int showDetail){
fprintf(stderr,
@@ -2733,6 +2736,11 @@ int main(int argc, char **argv){
);
vfstrace_register("trace",0,(int(*)(const char*,void*))fputs,stderr,1);
#endif
+#ifdef SQLITE_ENABLE_MULTIPLEX
+ }else if( strcmp(argv[i],"-multiplex")==0 ){
+ extern int sqlite3_multiple_initialize(const char*,int);
+ sqlite3_multiplex_initialize(0, 1);
+#endif
}else if( strcmp(argv[i],"-vfs")==0 ){
sqlite3_vfs *pVfs = sqlite3_vfs_find(argv[++i]);
if( pVfs ){
@@ -2851,8 +2859,14 @@ int main(int argc, char **argv){
i++;
}else if( strcmp(z,"-vfs")==0 ){
i++;
+#ifdef SQLITE_ENABLE_VFSTRACE
}else if( strcmp(z,"-vfstrace")==0 ){
i++;
+#endif
+#ifdef SQLITE_ENABLE_MULTIPLEX
+ }else if( strcmp(z,"-multiplex")==0 ){
+ i++;
+#endif
}else if( strcmp(z,"-help")==0 || strcmp(z, "--help")==0 ){
usage(1);
}else{