1
0
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:
dan
2016-05-30 05:45:32 +00:00
parent adeb47e57b
commit 96b9dc9b36
4 changed files with 24 additions and 18 deletions

View File

@@ -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);