** SQL function: shell_putsnl(X) ** ** Write the text X to the screen (or whatever output is being directed) ** adding a newline at the end, and then return X. */
| 11421 | ** adding a newline at the end, and then return X. |
| 11422 | */ |
| 11423 | static void shellPutsFunc( |
| 11424 | sqlite3_context *pCtx, |
| 11425 | int nVal, |
| 11426 | sqlite3_value **apVal |
| 11427 | ){ |
| 11428 | ShellState *p = (ShellState*)sqlite3_user_data(pCtx); |
| 11429 | (void)nVal; |
| 11430 | utf8_printf(p->out, "%s\n", sqlite3_value_text(apVal[0])); |
| 11431 | sqlite3_result_value(pCtx, apVal[0]); |
| 11432 | } |
| 11433 | |
| 11434 | /* |
| 11435 | ** SQL function: edit(VALUE) |
nothing calls this directly
no test coverage detected