GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
Go to the source code of this file.
Functions | |
int | my_yyinput (char *buf, int max_size) |
void | yyerror (const char *s) |
int | yyparse (void) |
int | yywrap (void) |
int | sqpSaveStr (SQLPVALUE *st, char *c) |
void | sqpInitValue (SQLPVALUE *val) |
void | sqpCopyValue (SQLPVALUE *from, SQLPVALUE *to) |
SQLPSTMT * | sqpInitStmt (void) |
int | sqpFreeStmt (SQLPSTMT *st) |
int | sqpPrintStmt (SQLPSTMT *st) |
int | sqpAllocCol (SQLPSTMT *st, int n) |
int | sqpAllocVal (SQLPSTMT *st, int n) |
int | sqpAllocCom (SQLPSTMT *st, int n) |
int | sqpInitParser (SQLPSTMT *st) |
void | sqpCommand (int command) |
void | sqpTable (char *table) |
void | sqpColumn (char *column) |
void | sqpColumnDef (char *column, int type, int width, int decimals) |
void | sqpValue (char *strval, int intval, double dblval, int type) |
void | sqpAssignment (char *column, char *strval, int intval, double dblval, SQLPNODE *expr, int type) |
void | sqpOrderColumn (char *col, int dir) |
int | sqpOperatorCode (char *) |
char * | sqpOperatorName (int) |
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 *) |
int my_yyinput | ( | char * | buf, |
int | max_size | ||
) |
int sqpAllocCol | ( | SQLPSTMT * | st, |
int | n | ||
) |
int sqpAllocCom | ( | SQLPSTMT * | st, |
int | n | ||
) |
int sqpAllocVal | ( | SQLPSTMT * | st, |
int | n | ||
) |
Definition at line 57 of file db/sqlp/alloc.c.
void sqpAssignment | ( | char * | column, |
char * | strval, | ||
int | intval, | ||
double | dblval, | ||
SQLPNODE * | expr, | ||
int | type | ||
) |
void sqpColumn | ( | char * | column | ) |
Definition at line 101 of file sql.c.
References SQLPSTMT::Col, SQLPSTMT::nCol, sqlpStmt, sqpAllocCol(), and sqpSaveStr().
void sqpColumnDef | ( | char * | column, |
int | type, | ||
int | width, | ||
int | decimals | ||
) |
void sqpCommand | ( | int | command | ) |
Definition at line 89 of file sql.c.
References SQLPSTMT::command, and sqlpStmt.
Definition at line 60 of file sql.c.
References SQLPVALUE::d, free(), SQLPVALUE::i, SQLPVALUE::s, and SQLPVALUE::type.
void sqpFreeNode | ( | SQLPNODE * | np | ) |
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().
int sqpFreeStmt | ( | SQLPSTMT * | st | ) |
Definition at line 75 of file db/sqlp/alloc.c.
References free(), sqpFreeNode(), and st.
int sqpInitParser | ( | SQLPSTMT * | st | ) |
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.
SQLPSTMT* sqpInitStmt | ( | void | ) |
Definition at line 26 of file db/sqlp/alloc.c.
References st.
void sqpInitValue | ( | SQLPVALUE * | val | ) |
Definition at line 52 of file sql.c.
References SQLPVALUE::d, SQLPVALUE::i, NULL, SQLPVALUE::s, SQLP_NULL, and SQLPVALUE::type.
SQLPNODE* sqpNewColumnNode | ( | char * | name | ) |
Definition at line 230 of file sql.c.
References sqlpnode::column_name, name, sqlpnode::node_type, SQLP_NODE_COLUMN, and sqpNewNode().
Definition at line 216 of file sql.c.
References sqlpnode::left, sqlpnode::node_type, sqlpnode::oper, sqlpnode::right, SQLP_NODE_EXPRESSION, and sqpNewNode().
SQLPNODE* sqpNewNode | ( | void | ) |
Definition at line 208 of file sql.c.
Referenced by sqpNewColumnNode(), and sqpNewExpressionNode().
SQLPNODE* sqpNewValueNode | ( | char * | strval, |
int | intval, | ||
double | dblval, | ||
int | type | ||
) |
char* sqpOperatorName | ( | int | oper | ) |
void sqpOrderColumn | ( | char * | col, |
int | dir | ||
) |
Definition at line 199 of file sql.c.
References SQLPSTMT::orderCol, SQLPSTMT::orderDir, sqlpStmt, and strcpy.
int sqpPrintStmt | ( | SQLPSTMT * | st | ) |
Definition at line 62 of file print.c.
References SQLPSTMT::Col, SQLPSTMT::ColType, SQLPSTMT::ColWidth, SQLPSTMT::command, SQLPVALUE::d, SQLPVALUE::i, SQLPVALUE::s, SQLP_ADD_COLUMN, SQLP_CREATE, SQLP_D, SQLP_DATE, SQLP_DELETE, SQLP_DOUBLE, SQLP_DROP, SQLP_DROP_COLUMN, SQLP_EXPR, SQLP_I, SQLP_INSERT, SQLP_INTEGER, SQLP_NULL, SQLP_S, SQLP_SELECT, SQLP_TIME, SQLP_UPDATE, SQLP_VARCHAR, sqlpStmt, st, SQLPSTMT::stmt, SQLPSTMT::table, SQLPVALUE::type, and SQLPSTMT::Val.
int sqpSaveStr | ( | SQLPVALUE * | st, |
char * | c | ||
) |
Definition at line 40 of file sql.c.
Referenced by sqpColumn().
void sqpTable | ( | char * | table | ) |
Definition at line 95 of file sql.c.
References SQLP_MAX_TABLE, sqlpStmt, and SQLPSTMT::table.
void sqpValue | ( | char * | strval, |
int | intval, | ||
double | dblval, | ||
int | type | ||
) |
void yyerror | ( | const char * | s | ) |
int yyparse | ( | void | ) |
Definition at line 1030 of file sqlp.tab.c.
References YY_, YY_ASSERT, YY_CAST, YY_IGNORE_USELESS_CAST_BEGIN, YY_IGNORE_USELESS_CAST_END, YY_STACK_PRINT, YYABORT, YYACCEPT, yyalloc(), yychar, YYDPRINTF, YYEMPTY, YYFINAL, YYINITDEPTH, YYMAXDEPTH, YYNSTATES, YYPTRDIFF_T, YYSIZE_T, YYSIZEOF, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, and YYSYMBOL_YYEMPTY.
int yywrap | ( | void | ) |