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

Function expertHandleSQL

modules/dasSQLITE/sqlite/shell.c:19082–19090  ·  view source on GitHub ↗

** This function is called to process SQL if the previous shell command ** was ".expert". It passes the SQL in the second argument directly to ** the sqlite3expert object. ** ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error ** code. In this case, (*pzErr) may be set to point to a buffer containing ** an English language error message. It is the responsibility of the ** caller to

Source from the content-addressed store, hash-verified

19080** caller to eventually free this buffer using sqlite3_free().
19081*/
19082static int expertHandleSQL(
19083 ShellState *pState,
19084 const char *zSql,
19085 char **pzErr
19086){
19087 assert( pState->expert.pExpert );
19088 assert( pzErr==0 || *pzErr==0 );
19089 return sqlite3_expert_sql(pState->expert.pExpert, zSql, pzErr);
19090}
19091
19092/*
19093** This function is called either to silently clean up the object

Callers 1

shell_execFunction · 0.85

Calls 2

assertFunction · 0.85
sqlite3_expert_sqlFunction · 0.85

Tested by

no test coverage detected