GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Go to the source code of this file.
Functions | |
int | my_yyinput (char *buf, int max_size) |
void | yyerror (const char *s) |
int | yyparse () |
int | yywrap () |
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 | ||
) |
Definition at line 37 of file db/sqlp/alloc.c.
References SQLPSTMT::aCol, SQLPSTMT::Col, SQLPSTMT::ColDecim, SQLPSTMT::ColType, SQLPSTMT::ColWidth, SQLPSTMT::nCol, NULL, and SQLPVALUE::s.
Referenced by sqpColumn().
int sqpAllocCom | ( | SQLPSTMT * | st, |
int | n | ||
) |
int sqpAllocVal | ( | SQLPSTMT * | st, |
int | n | ||
) |
Definition at line 58 of file db/sqlp/alloc.c.
References SQLPSTMT::aVal, NULL, SQLPSTMT::nVal, SQLPVALUE::s, and SQLPSTMT::Val.
void sqpAssignment | ( | char * | column, |
char * | strval, | ||
int | intval, | ||
double | dblval, | ||
SQLPNODE * | expr, | ||
int | type | ||
) |
void sqpColumn | ( | char * | column | ) |
Definition at line 102 of file sql.c.
References SQLPSTMT::Col, SQLPSTMT::nCol, sqpAllocCol(), and sqpSaveStr().
void sqpColumnDef | ( | char * | column, |
int | type, | ||
int | width, | ||
int | decimals | ||
) |
void sqpCommand | ( | int | command | ) |
Definition at line 90 of file sql.c.
References SQLPSTMT::command.
Definition at line 61 of file sql.c.
References SQLPVALUE::d, free(), SQLPVALUE::i, SQLPVALUE::s, and SQLPVALUE::type.
void sqpFreeNode | ( | SQLPNODE * | ) |
Definition at line 260 of file sql.c.
References sqlpnode::column_name, free(), sqlpnode::left, sqlpnode::right, SQLPVALUE::s, and sqlpnode::value.
Referenced by sqpFreeStmt().
int sqpFreeStmt | ( | SQLPSTMT * | st | ) |
Definition at line 76 of file db/sqlp/alloc.c.
References SQLPSTMT::aCol, SQLPSTMT::aVal, SQLPSTMT::Col, SQLPSTMT::ColDecim, SQLPSTMT::ColType, SQLPSTMT::ColWidth, free(), SQLPSTMT::nCol, SQLPSTMT::nVal, SQLPSTMT::orderCol, SQLPVALUE::s, sqpFreeNode(), SQLPSTMT::upperNodeptr, and SQLPSTMT::Val.
int sqpInitParser | ( | SQLPSTMT * | st | ) |
Definition at line 75 of file sql.c.
References SQLPSTMT::cur, SQLPSTMT::errmsg, SQLPSTMT::nCol, NULL, SQLPSTMT::nVal, SQLPSTMT::orderCol, st, SQLPSTMT::stmt, SQLPSTMT::table, and SQLPSTMT::upperNodeptr.
SQLPSTMT* sqpInitStmt | ( | void | ) |
Definition at line 27 of file db/sqlp/alloc.c.
References st.
void sqpInitValue | ( | SQLPVALUE * | val | ) |
Definition at line 53 of file sql.c.
References SQLPVALUE::d, SQLPVALUE::i, NULL, SQLPVALUE::s, SQLP_NULL, and SQLPVALUE::type.
SQLPNODE* sqpNewColumnNode | ( | char * | name | ) |
Definition at line 231 of file sql.c.
References sqlpnode::column_name, sqlpnode::node_type, SQLP_NODE_COLUMN, and sqpNewNode().
Definition at line 217 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 209 of file sql.c.
Referenced by sqpNewColumnNode(), and sqpNewExpressionNode().
SQLPNODE* sqpNewValueNode | ( | char * | strval, |
int | intval, | ||
double | dblval, | ||
int | type | ||
) |
char* sqpOperatorName | ( | int | ) |
void sqpOrderColumn | ( | char * | col, |
int | dir | ||
) |
Definition at line 200 of file sql.c.
References SQLPSTMT::orderCol, and SQLPSTMT::orderDir.
int sqpPrintStmt | ( | SQLPSTMT * | st | ) |
Definition at line 63 of file print.c.
References SQLPSTMT::Col, SQLPSTMT::ColType, SQLPSTMT::ColWidth, SQLPSTMT::command, SQLPVALUE::d, SQLPVALUE::i, SQLPSTMT::nCol, SQLPSTMT::nVal, 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, SQLPSTMT::stmt, SQLPSTMT::table, SQLPVALUE::type, and SQLPSTMT::Val.
int sqpSaveStr | ( | SQLPVALUE * | st, |
char * | c | ||
) |
Definition at line 41 of file sql.c.
Referenced by sqpColumn().
void sqpTable | ( | char * | table | ) |
Definition at line 96 of file sql.c.
References SQLP_MAX_TABLE, and SQLPSTMT::table.
void sqpValue | ( | char * | strval, |
int | intval, | ||
double | dblval, | ||
int | type | ||
) |
void yyerror | ( | const char * | s | ) |
int yyparse | ( | void | ) |
Definition at line 1179 of file sqlp.tab.c.
int yywrap | ( | ) |