|
Classes |
| struct | operands_t |
| struct | Inst |
| struct | Result |
| struct | query_t |
| struct | qreg_t |
Defines |
| #define | HAVE_QUERY_H 1 |
| #define | OP_BEGINQ 0x1 |
| #define | OP_SETCAT 0x2 |
| #define | OP_BEGIN_GRP 0x3 |
| #define | OP_CLOSE_GRP 0x4 |
| #define | OPL_AND 0x5 |
| #define | OPL_OR 0x6 |
| #define | OPL_NOT 0x7 |
| #define | OPL_EQUAL 0x8 |
| #define | OP_COLNAME 0x9 |
| #define | OP_STRING 0xA |
| #define | OP_INT 0xB |
| #define | OP_UINT 0xC |
| #define | OP_VOID 0xD |
| #define | OP_FLOAT 0xE |
| #define | OP_PUSH 0xF |
| #define | OP_POP 0x10 |
| #define | OP_ENDQ 0x11 |
| #define | OP_SELCN 0x12 |
| #define | OP_REGEXP 0x13 |
| #define | OP_NULL 0x14 |
| #define | OPL_NEQU 0x15 |
| #define | OPL_GTHAN 0x16 |
| #define | OPL_LTHAN 0x17 |
| #define | OPL_GTHEQU 0x18 |
| #define | OPL_LTHEQU 0x19 |
| #define | OP_NOTREGEXP 0x1A |
| #define | USED_O1 0x1 |
| #define | USED_O2 0x2 |
| #define | USED_O3 0x4 |
| #define | US_DYNA 0x8 |
| #define | US_FILE 0xF |
| #define | Q_FINISHED 0x1 |
| #define | Q_NEXT 0x2 |
| #define | Q_INST_AFTER_END 0x3 |
| #define | Q_UNBALANCED_GROUP 0x4 |
| #define | Q_INVALID_O1 0x5 |
| #define | Q_INVALID_O2 0x6 |
| #define | Q_INVALID_O3 0x7 |
| #define | Q_STEP_ON_UNINIT 0x8 |
| #define | Q_MISSING_OPERAND 0x9 |
| #define | Q_CATALOGUE_NOT_SET 0xA |
| #define | Q_OPERATION_WITHOUT_OPERANDS 0xB |
| #define | Q_DOUBLE_OPERAND 0xC |
| #define | Q_FDBFS_ERROR 0xD |
| #define | Q_NO_COLUMNS 0xE |
| #define | Q_NO_SUCH_CAT 0xF |
| #define | Q_NO_SUCH_CELEM 0x10 |
| #define | Q_STACK_FULL 0x11 |
| #define | Q_UNKNOWNSTATE 0xFF |
Typedefs |
| typedef Inst | inst_t |
| typedef Result | result_t |
Enumerations |
| enum | estate { init = 0,
more,
finished
} |
Functions |
| query_t * | fdbfs_query_new (fdbfs_t *f, size_t stacksize) |
| | Create new query object.
|
| void | fdbfs_query_destroy (query_t *q) |
| | Destroy query.
|
| int | fdbfs_query_qi (query_t *q, int opcode, int op1, unsigned int op2, void *op3, int used) |
| | Queue instruction.
|
| int | fdbfs_query_qne (query_t *q) |
| | Query next or execute.
|
| int | fdbfs_query_step (query_t *q) |
| | Step currently-running query.
|
| int | fdbfs_query_init_exec (query_t *q) |
| | Initialise and execute a query.
|
| int | fdbfs_query_spush (query_t *q, int o1, unsigned int o2, void *o3, int used) |
| | Push a cell to the query stack.
|
| int | fdbfs_query_spop (query_t *q, operands_t *bf) |
| | Pop cell off stack.
|
| int | fdbfs_query_pop1 (query_t *q, int *o1) |
| | Pop O1.
|
| int | fdbfs_query_pop2 (query_t *q, unsigned int *o2) |
| | Pop O2.
|
| int | fdbfs_query_pop3 (query_t *q, void **o3) |
| | Pop O3.
|
| int | fdbfs_query_push1 (query_t *q, int o1) |
| | Push O1.
|
| int | fdbfs_query_push2 (query_t *q, unsigned int o2) |
| | Push O2.
|
| int | fdbfs_query_push3 (query_t *q, void *o3) |
| | Push O3.
|
| qreg_t * | fdbfs_qreg_compile (const char *regex, int case_insens, char **errmsg) |
| | Create and compile new qreg object.
|
| void | fdbfs_qreg_destroy (qreg_t *q) |
| | Destroy qreg object.
|
| void * | fdbfs_query_read_file (fdbfs_t *f, const char *fn) |
| | Read file.
|
| int | fdbfs_query_parse (query_t *q, const char *qstr) |
| | Parse a query.
|
| int | fdbfs_query_qtok (char **cp, int *tval, Toke *toke, char *ctok) |
| | Tokeinse query.
|
| void | fdbfs_db_regex_func (sqlite3_context *ctx, int i, sqlite3_value **sqval) |
| | SQLite regex func. For internal use only.
|
| const char * | fdbfs_query_error (int rc) |
| | Get description for error code.
|