GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
defs/sqlp.h
Go to the documentation of this file.
1 #ifndef GRASS_SQLPDEFS_H
2 #define GRASS_SQLPDEFS_H
3 
4 int my_yyinput(char *buf, int max_size);
5 void yyerror(const char *s);
6 int yyparse();
7 int yywrap();
8 
9 int sqpSaveStr(SQLPVALUE * st, char *c);
10 void sqpInitValue(SQLPVALUE * val);
11 void sqpCopyValue(SQLPVALUE * from, SQLPVALUE * to);
12 
13 SQLPSTMT *sqpInitStmt(void);
14 int sqpFreeStmt(SQLPSTMT * st);
15 int sqpPrintStmt(SQLPSTMT * st);
16 int sqpAllocCol(SQLPSTMT * st, int n);
17 int sqpAllocVal(SQLPSTMT * st, int n);
18 int sqpAllocCom(SQLPSTMT * st, int n);
20 
21 
22 void sqpCommand(int command);
23 void sqpTable(char *table);
24 void sqpColumn(char *column);
25 void sqpColumnDef(char *column, int type, int width, int decimals);
26 void sqpValue(char *strval, int intval, double dblval, int type);
27 void sqpAssignment(char *column, char *strval, int intval, double dblval,
28  SQLPNODE * expr, int type);
29 void sqpOrderColumn(char *col, int dir);
30 int sqpOperatorCode(char *);
31 char *sqpOperatorName(int);
32 
33 SQLPNODE *sqpNewNode(void);
34 
35 SQLPNODE *sqpNewExpressionNode(int oper, SQLPNODE * left, SQLPNODE * right);
37 SQLPNODE *sqpNewValueNode(char *strval, int intval, double dblval, int type);
38 
39 void sqpFreeNode(SQLPNODE *);
40 
41 #endif
Definition: sqlp.h:70
int yyparse()
Definition: sqlp.tab.c:1179
void sqpFreeNode(SQLPNODE *)
Definition: sql.c:260
void sqpAssignment(char *column, char *strval, int intval, double dblval, SQLPNODE *expr, int type)
Definition: sql.c:162
void sqpInitValue(SQLPVALUE *val)
Definition: sql.c:53
SQLPSTMT * sqpInitStmt(void)
Definition: db/sqlp/alloc.c:27
void sqpColumn(char *column)
Definition: sql.c:102
void sqpOrderColumn(char *col, int dir)
Definition: sql.c:200
Definition: sqlp.h:89
void sqpValue(char *strval, int intval, double dblval, int type)
Definition: sql.c:129
int sqpInitParser(SQLPSTMT *st)
Definition: sql.c:75
int sqpFreeStmt(SQLPSTMT *st)
Definition: db/sqlp/alloc.c:76
struct state * st
Definition: parser.c:104
SQLPNODE * sqpNewColumnNode(char *name)
Definition: sql.c:231
int sqpOperatorCode(char *)
Definition: sql.c:280
int sqpAllocCol(SQLPSTMT *st, int n)
Definition: db/sqlp/alloc.c:37
Definition: sqlp.h:79
void sqpCopyValue(SQLPVALUE *from, SQLPVALUE *to)
Definition: sql.c:61
int yywrap()
int sqpAllocVal(SQLPSTMT *st, int n)
Definition: db/sqlp/alloc.c:58
SQLPNODE * sqpNewExpressionNode(int oper, SQLPNODE *left, SQLPNODE *right)
Definition: sql.c:217
int sqpPrintStmt(SQLPSTMT *st)
Definition: print.c:63
void sqpTable(char *table)
Definition: sql.c:96
char * sqpOperatorName(int)
Definition: sql.c:326
void yyerror(const char *s)
void sqpCommand(int command)
Definition: sql.c:90
int my_yyinput(char *buf, int max_size)
SQLPNODE * sqpNewNode(void)
Definition: sql.c:209
const char * name
Definition: named_colr.c:7
int sqpAllocCom(SQLPSTMT *st, int n)
SQLPNODE * sqpNewValueNode(char *strval, int intval, double dblval, int type)
Definition: sql.c:243
int sqpSaveStr(SQLPVALUE *st, char *c)
Definition: sql.c:41
void sqpColumnDef(char *column, int type, int width, int decimals)
Definition: sql.c:114