GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-f63024f571
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(void);
7 int yywrap(void);
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);
16 int sqpAllocCol(SQLPSTMT *st, int n);
17 int sqpAllocVal(SQLPSTMT *st, int n);
18 int sqpAllocCom(SQLPSTMT *st, int n);
20 
21 void sqpCommand(int command);
22 void sqpTable(char *table);
23 void sqpColumn(char *column);
24 void sqpColumnDef(char *column, int type, int width, int decimals);
25 void sqpValue(char *strval, int intval, double dblval, int type);
26 void sqpAssignment(char *column, char *strval, int intval, double dblval,
27  SQLPNODE *expr, int type);
28 void sqpOrderColumn(char *col, int dir);
29 int sqpOperatorCode(char *);
30 char *sqpOperatorName(int);
31 
32 SQLPNODE *sqpNewNode(void);
33 
34 SQLPNODE *sqpNewExpressionNode(int oper, SQLPNODE *left, SQLPNODE *right);
36 SQLPNODE *sqpNewValueNode(char *strval, int intval, double dblval, int type);
37 
38 void sqpFreeNode(SQLPNODE *);
39 
40 #endif
SQLPNODE * sqpNewValueNode(char *strval, int intval, double dblval, int type)
Definition: sql.c:242
int sqpFreeStmt(SQLPSTMT *st)
Definition: db/sqlp/alloc.c:75
char * sqpOperatorName(int)
Definition: sql.c:325
int sqpSaveStr(SQLPVALUE *st, char *c)
Definition: sql.c:40
void sqpCopyValue(SQLPVALUE *from, SQLPVALUE *to)
Definition: sql.c:60
void sqpValue(char *strval, int intval, double dblval, int type)
Definition: sql.c:128
SQLPNODE * sqpNewExpressionNode(int oper, SQLPNODE *left, SQLPNODE *right)
Definition: sql.c:216
int sqpOperatorCode(char *)
Definition: sql.c:279
int sqpAllocCol(SQLPSTMT *st, int n)
Definition: db/sqlp/alloc.c:36
int yyparse(void)
Definition: sqlp.tab.c:1030
int my_yyinput(char *buf, int max_size)
int yywrap(void)
int sqpAllocVal(SQLPSTMT *st, int n)
Definition: db/sqlp/alloc.c:57
void sqpFreeNode(SQLPNODE *)
Definition: sql.c:259
void sqpColumn(char *column)
Definition: sql.c:101
void sqpCommand(int command)
Definition: sql.c:89
SQLPNODE * sqpNewColumnNode(char *name)
Definition: sql.c:230
int sqpAllocCom(SQLPSTMT *st, int n)
int sqpInitParser(SQLPSTMT *st)
Definition: sql.c:74
void sqpInitValue(SQLPVALUE *val)
Definition: sql.c:52
void yyerror(const char *s)
void sqpColumnDef(char *column, int type, int width, int decimals)
Definition: sql.c:113
SQLPSTMT * sqpInitStmt(void)
Definition: db/sqlp/alloc.c:26
void sqpOrderColumn(char *col, int dir)
Definition: sql.c:199
void sqpTable(char *table)
Definition: sql.c:95
void sqpAssignment(char *column, char *strval, int intval, double dblval, SQLPNODE *expr, int type)
Definition: sql.c:161
int sqpPrintStmt(SQLPSTMT *st)
Definition: print.c:62
SQLPNODE * sqpNewNode(void)
Definition: sql.c:208
const char * name
Definition: named_colr.c:6
struct state * st
Definition: parser.c:104
Definition: sqlp.h:87
Definition: sqlp.h:69
Definition: sqlp.h:77