MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / sqlite3_expert_config

Function sqlite3_expert_config

modules/dasSQLITE/sqlite/shell.c:12085–12104  ·  view source on GitHub ↗

** Configure an sqlite3expert object. */

Source from the content-addressed store, hash-verified

12083** Configure an sqlite3expert object.
12084*/
12085int sqlite3_expert_config(sqlite3expert *p, int op, ...){
12086 int rc = SQLITE_OK;
12087 va_list ap;
12088 va_start(ap, op);
12089 switch( op ){
12090 case EXPERT_CONFIG_SAMPLE: {
12091 int iVal = va_arg(ap, int);
12092 if( iVal<0 ) iVal = 0;
12093 if( iVal>100 ) iVal = 100;
12094 p->iSample = iVal;
12095 break;
12096 }
12097 default:
12098 rc = SQLITE_NOTFOUND;
12099 break;
12100 }
12101
12102 va_end(ap);
12103 return rc;
12104}
12105
12106/*
12107** Add an SQL statement to the analysis.

Callers 1

expertDotCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected