** 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. */
| 27661 | ** is called, or results are undefined. |
| 27662 | */ |
| 27663 | void 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 */ |
nothing calls this directly
no test coverage detected