|
reldb 0.1.0
Recreational SQLite
|
Implementation of the SQL compiler and meta-command router. More...

Go to the source code of this file.
Functions | |
| 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. | |
Implementation of the SQL compiler and meta-command router.
Definition in file compiler.c.
| MetaCmdRes do_meta_cmd | ( | InputBuffer * | inbuf | ) |
Parses and executes non-SQL meta-commands (commands starting with '.').
| [in] | inbuf | The input buffer containing the user's command. |
| META_CMD_SUCCESS | If the command was valid and executed. |
| META_COMMAND_UNRECOGNISED_CMD | If the command does not exist. |
Definition at line 11 of file compiler.c.

| PrepareRes prepare_statement | ( | InputBuffer * | inbuf, |
| Statement * | stmt ) |
The "Compiler": parses raw string input into an executable Statement.
| [in] | inbuf | The raw text input from the user. |
| [out] | stmt | Pointer to the Statement struct to be populated. |
| PREPARE_SUCCESS | If parsing succeeded. |
| PREPARE_UNRECOGNIZED_STATEMENT | If the SQL syntax is invalid. |
Definition at line 22 of file compiler.c.