38 if (
'.' == inbuf->
buffer[0]) {
40 case (META_CMD_SUCCESS):
42 case (META_COMMAND_UNRECOGNISED_CMD):
43 r = fprintf(stderr,
"Unrecognised command '%s'\n", inbuf->
buffer);
51 case (PREPARE_SUCCESS):
53 case (PREPARE_UNRECOGNIZED_STATEMENT):
56 "Unrecognised keyword at start of '%s'\n",
SQL text parsing and meta-command routing.
MetaCmdRes do_meta_cmd(InputBuffer *inbuf)
Parses and executes non-SQL meta-commands (commands starting with '.').
PrepareRes prepare_statement(InputBuffer *inbuf, Statement *stmt)
The "Compiler": parses raw string input into an executable Statement.
Context detection, utilities, and compiler abstractions.
static void print_prompt(void)
A parsed SQL statement ready for execution by the VM.
Core type definitions and fixed-width aliases.
Virtual Machine for executing compiled SQL statements.
void execute_statement(Statement *stmt)
The "Virtual Machine": executes a compiled Statement.