mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Minor tweaks to the bc_test1 test program.
FossilOrigin-Name: d0d0bab4e92402b6af98366be6e8955588613a51
This commit is contained in:
@@ -488,19 +488,20 @@ int main(int argc, const char **argv){
|
||||
int i;
|
||||
|
||||
CmdlineArg apArg[] = {
|
||||
{ "--seconds", CMDLINE_INT, offsetof(Config, nSecond) },
|
||||
{ "--inserts", CMDLINE_INT, offsetof(Config, nIPT) },
|
||||
{ "--threads", CMDLINE_INT, offsetof(Config, nThread) },
|
||||
{ "--mutex", CMDLINE_BOOL, offsetof(Config, bMutex) },
|
||||
{ "--rm", CMDLINE_BOOL, offsetof(Config, bRm) },
|
||||
{ "--autockpt",CMDLINE_INT, offsetof(Config, nAutoCkpt) },
|
||||
{ "--mmap", CMDLINE_INT, offsetof(Config, nMmap) },
|
||||
{ "--clear-cache", CMDLINE_BOOL, offsetof(Config, bClearCache) },
|
||||
{ "--file", CMDLINE_STRING, offsetof(Config, zFile) },
|
||||
{ "--osinst", CMDLINE_BOOL, offsetof(Config, bOsinst) },
|
||||
{ "-seconds", CMDLINE_INT, offsetof(Config, nSecond) },
|
||||
{ "-inserts", CMDLINE_INT, offsetof(Config, nIPT) },
|
||||
{ "-threads", CMDLINE_INT, offsetof(Config, nThread) },
|
||||
{ "-mutex", CMDLINE_BOOL, offsetof(Config, bMutex) },
|
||||
{ "-rm", CMDLINE_BOOL, offsetof(Config, bRm) },
|
||||
{ "-autockpt",CMDLINE_INT, offsetof(Config, nAutoCkpt) },
|
||||
{ "-mmap", CMDLINE_INT, offsetof(Config, nMmap) },
|
||||
{ "-clear-cache", CMDLINE_BOOL, offsetof(Config, bClearCache) },
|
||||
{ "-file", CMDLINE_STRING, offsetof(Config, zFile) },
|
||||
{ "-osinst", CMDLINE_BOOL, offsetof(Config, bOsinst) },
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
|
||||
conf.nAutoCkpt = 1000;
|
||||
cmdline_process(apArg, argc, argv, (void*)&conf);
|
||||
if( err.rc==SQLITE_OK ){
|
||||
char *z = cmdline_construct(apArg, (void*)&conf);
|
||||
|
Reference in New Issue
Block a user