|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <ctype.h>#include <assert.h>#include <grass/sqlp.h>
Go to the source code of this file.
Functions | |
| int | sqpSaveStr (SQLPVALUE *val, char *c) |
| void | sqpInitValue (SQLPVALUE *val) |
| void | sqpCopyValue (SQLPVALUE *from, SQLPVALUE *to) |
| int | sqpInitParser (SQLPSTMT *st) |
| void | sqpCommand (int command) |
| void | sqpTable (char *tbl) |
| void | sqpColumn (char *col) |
| void | sqpColumnDef (char *col, int type, int width, int decimals) |
| void | sqpValue (char *strval, int intval, double dblval, int type) |
| void | sqpAssignment (char *col, char *strval, int intval, double dblval, SQLPNODE *expval, int type) |
| void | sqpOrderColumn (char *col, int dir) |
| SQLPNODE * | sqpNewNode (void) |
| SQLPNODE * | sqpNewExpressionNode (int oper, SQLPNODE *left, SQLPNODE *right) |
| SQLPNODE * | sqpNewColumnNode (char *name) |
| SQLPNODE * | sqpNewValueNode (char *strval, int intval, double dblval, int type) |
| void | sqpFreeNode (SQLPNODE *np) |
| int | sqpOperatorCode (char *oper) |
| char * | sqpOperatorName (int oper) |
Variables | |
| SQLPSTMT * | sqlpStmt |
| void sqpAssignment | ( | char * | col, |
| char * | strval, | ||
| int | intval, | ||
| double | dblval, | ||
| SQLPNODE * | expval, | ||
| int | type | ||
| ) |
Definition at line 161 of file sql.c.
References SQLPSTMT::Col, SQLPVALUE::d, SQLPVALUE::expr, SQLPVALUE::i, SQLPSTMT::nCol, NULL, SQLPSTMT::nVal, SQLPVALUE::s, SQLP_D, SQLP_EXPR, SQLP_I, SQLP_S, sqlpStmt, sqpAllocCol(), sqpAllocVal(), sqpSaveStr(), SQLPVALUE::type, and SQLPSTMT::Val.
Referenced by yyparse().
Definition at line 101 of file sql.c.
References SQLPSTMT::Col, SQLPSTMT::nCol, sqlpStmt, sqpAllocCol(), and sqpSaveStr().
Referenced by yyparse().
Definition at line 113 of file sql.c.
References SQLPSTMT::Col, SQLPSTMT::ColDecim, SQLPSTMT::ColType, SQLPSTMT::ColWidth, SQLPSTMT::nCol, sqlpStmt, sqpAllocCol(), and sqpSaveStr().
Referenced by yyparse().
Definition at line 89 of file sql.c.
References SQLPSTMT::command, and sqlpStmt.
Referenced by yyparse().
Definition at line 60 of file sql.c.
References SQLPVALUE::d, free(), SQLPVALUE::i, SQLPVALUE::s, and SQLPVALUE::type.
Definition at line 259 of file sql.c.
References sqlpnode::column_name, free(), sqlpnode::left, sqlpnode::right, SQLPVALUE::s, sqpFreeNode(), and sqlpnode::value.
Referenced by sqpFreeNode(), and sqpFreeStmt().
Definition at line 74 of file sql.c.
References SQLPSTMT::cur, SQLPSTMT::errmsg, SQLPSTMT::nCol, NULL, SQLPSTMT::nVal, SQLPSTMT::orderCol, sqlpStmt, st, SQLPSTMT::stmt, SQLPSTMT::table, and SQLPSTMT::upperNodeptr.
Definition at line 52 of file sql.c.
References SQLPVALUE::d, SQLPVALUE::i, NULL, SQLPVALUE::s, SQLP_NULL, and SQLPVALUE::type.
Definition at line 230 of file sql.c.
References sqlpnode::column_name, name, sqlpnode::node_type, SQLP_NODE_COLUMN, and sqpNewNode().
Referenced by yyparse().
Definition at line 216 of file sql.c.
References sqlpnode::left, sqlpnode::node_type, sqlpnode::oper, sqlpnode::right, SQLP_NODE_EXPRESSION, and sqpNewNode().
Referenced by yyparse().
Definition at line 208 of file sql.c.
Referenced by sqpNewColumnNode(), sqpNewExpressionNode(), and sqpNewValueNode().
Definition at line 242 of file sql.c.
References SQLPVALUE::d, SQLPVALUE::i, sqlpnode::node_type, SQLPVALUE::s, SQLP_NODE_VALUE, sqpNewNode(), SQLPVALUE::type, and sqlpnode::value.
Referenced by yyparse().
Definition at line 199 of file sql.c.
References SQLPSTMT::orderCol, SQLPSTMT::orderDir, sqlpStmt, and strcpy.
Referenced by yyparse().
Definition at line 40 of file sql.c.
References SQLPVALUE::s, and strcpy.
Referenced by sqpAssignment(), sqpColumn(), sqpColumnDef(), and sqpValue().
Definition at line 95 of file sql.c.
References SQLP_MAX_TABLE, sqlpStmt, and SQLPSTMT::table.
Referenced by yyparse().
Definition at line 128 of file sql.c.
References SQLPVALUE::d, SQLPVALUE::i, NULL, SQLPSTMT::nVal, SQLPVALUE::s, SQLP_D, SQLP_I, SQLP_S, sqlpStmt, sqpAllocCol(), sqpAllocVal(), sqpSaveStr(), SQLPVALUE::type, and SQLPSTMT::Val.
Referenced by yyparse().
| SQLPSTMT* sqlpStmt |
Definition at line 37 of file sql.c.
Referenced by my_yyinput(), sqpAssignment(), sqpColumn(), sqpColumnDef(), sqpCommand(), sqpInitParser(), sqpOrderColumn(), sqpPrintStmt(), sqpTable(), sqpValue(), yyerror(), and yyparse().