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

Function fiddle_exec

modules/dasSQLITE/sqlite/shell.c:27663–27671  ·  view source on GitHub ↗

** Trivial exportable function for emscripten. It processes zSql as if ** it were input to the sqlite3 shell and redirects all output to the ** wasm binding. fiddle_main() must have been called before this ** is called, or results are undefined. */

Source from the content-addressed store, hash-verified

27661** is called, or results are undefined.
27662*/
27663void fiddle_exec(const char * zSql){
27664 if(zSql && *zSql){
27665 if('.'==*zSql) puts(zSql);
27666 shellState.wasm.zInput = zSql;
27667 shellState.wasm.zPos = zSql;
27668 process_input(&shellState);
27669 shellState.wasm.zInput = shellState.wasm.zPos = 0;
27670 }
27671}
27672#endif /* SQLITE_SHELL_FIDDLE */

Callers

nothing calls this directly

Calls 1

process_inputFunction · 0.85

Tested by

no test coverage detected