GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71915
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sqlp.h File Reference
#include <grass/defs/sqlp.h>
Include dependency graph for sqlp.h:

Go to the source code of this file.

Data Structures

struct  SQLPVALUE
 
struct  sqlpnode
 
struct  SQLPSTMT
 

Macros

#define SQLP_CREATE   1
 
#define SQLP_DROP   2
 
#define SQLP_INSERT   3
 
#define SQLP_SELECT   4
 
#define SQLP_UPDATE   5
 
#define SQLP_DELETE   6
 
#define SQLP_ADD_COLUMN   7
 
#define SQLP_DROP_COLUMN   8
 
#define SQLP_ADD   1 /* + */
 
#define SQLP_SUBTR   2 /* - */
 
#define SQLP_MLTP   3 /* * */
 
#define SQLP_DIV   4 /* / */
 
#define SQLP_EQ   11 /* = */
 
#define SQLP_LT   12 /* < */
 
#define SQLP_LE   13 /* <= */
 
#define SQLP_GT   14 /* > */
 
#define SQLP_GE   15 /* >= */
 
#define SQLP_NE   16 /* <> */
 
#define SQLP_MTCH   17 /* ~ */
 
#define SQLP_ISNULL   18 /* IS NULL */
 
#define SQLP_NOTNULL   19 /* IS NULL */
 
#define SQLP_AND   21
 
#define SQLP_OR   22
 
#define SQLP_NOT   23
 
#define SQLP_NULL   1 /* value NULL -> unknown type */
 
#define SQLP_S   2 /* string */
 
#define SQLP_I   3 /* integer */
 
#define SQLP_D   4 /* float */
 
#define SQLP_BOOL   5 /* used only for type of expression */
 
#define SQLP_EXPR   6 /* expression XXX */
 
#define SQLP_VARCHAR   1
 
#define SQLP_INTEGER   2
 
#define SQLP_DOUBLE   3
 
#define SQLP_DATE   4
 
#define SQLP_TIME   5
 
#define SQLP_MAX_TABLE   200
 
#define SQLP_MAX_ERR   500
 
#define SQLP_NODE_COLUMN   1
 
#define SQLP_NODE_VALUE   2
 
#define SQLP_NODE_EXPRESSION   3
 
#define SORT_ASC   1
 
#define SORT_DESC   2
 

Typedefs

typedef struct sqlpnode SQLPNODE
 

Variables

SQLPSTMTsqlpStmt
 

Macro Definition Documentation

#define SORT_ASC   1

Definition at line 66 of file sqlp.h.

Referenced by yyparse().

#define SORT_DESC   2

Definition at line 67 of file sqlp.h.

Referenced by yyparse().

#define SQLP_ADD   1 /* + */

Definition at line 20 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_ADD_COLUMN   7

Definition at line 15 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_AND   21

Definition at line 38 of file sqlp.h.

Referenced by sqpOperatorCode(), sqpOperatorName(), and yyparse().

#define SQLP_BOOL   5 /* used only for type of expression */

Definition at line 47 of file sqlp.h.

#define SQLP_CREATE   1

Definition at line 9 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_D   4 /* float */

Definition at line 46 of file sqlp.h.

Referenced by sqpAssignment(), sqpPrintStmt(), sqpValue(), and yyparse().

#define SQLP_DATE   4

Definition at line 54 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_DELETE   6

Definition at line 14 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_DIV   4 /* / */

Definition at line 23 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_DOUBLE   3

Definition at line 53 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_DROP   2

Definition at line 10 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_DROP_COLUMN   8

Definition at line 16 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_EQ   11 /* = */

Definition at line 26 of file sqlp.h.

Referenced by sqpOperatorCode(), sqpOperatorName(), and yyparse().

#define SQLP_EXPR   6 /* expression XXX */

Definition at line 48 of file sqlp.h.

Referenced by sqpAssignment(), sqpPrintStmt(), and yyparse().

#define SQLP_GE   15 /* >= */

Definition at line 30 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_GT   14 /* > */

Definition at line 29 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_I   3 /* integer */

Definition at line 45 of file sqlp.h.

Referenced by sqpAssignment(), sqpPrintStmt(), sqpValue(), and yyparse().

#define SQLP_INSERT   3

Definition at line 11 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_INTEGER   2

Definition at line 52 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_ISNULL   18 /* IS NULL */

Definition at line 34 of file sqlp.h.

Referenced by yyparse().

#define SQLP_LE   13 /* <= */

Definition at line 28 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_LT   12 /* < */

Definition at line 27 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_MAX_ERR   500

Definition at line 58 of file sqlp.h.

#define SQLP_MAX_TABLE   200

Definition at line 57 of file sqlp.h.

Referenced by sqpTable().

#define SQLP_MLTP   3 /* * */

Definition at line 22 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_MTCH   17 /* ~ */

Definition at line 32 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_NE   16 /* <> */

Definition at line 31 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_NODE_COLUMN   1

Definition at line 61 of file sqlp.h.

Referenced by sqpNewColumnNode().

#define SQLP_NODE_EXPRESSION   3

Definition at line 63 of file sqlp.h.

Referenced by sqpNewExpressionNode().

#define SQLP_NODE_VALUE   2

Definition at line 62 of file sqlp.h.

Referenced by sqpNewValueNode().

#define SQLP_NOT   23

Definition at line 40 of file sqlp.h.

Referenced by sqpOperatorCode(), sqpOperatorName(), and yyparse().

#define SQLP_NOTNULL   19 /* IS NULL */

Definition at line 35 of file sqlp.h.

Referenced by yyparse().

#define SQLP_NULL   1 /* value NULL -> unknown type */

Definition at line 43 of file sqlp.h.

Referenced by sqpInitValue(), sqpPrintStmt(), and yyparse().

#define SQLP_OR   22

Definition at line 39 of file sqlp.h.

Referenced by sqpOperatorCode(), sqpOperatorName(), and yyparse().

#define SQLP_S   2 /* string */

Definition at line 44 of file sqlp.h.

Referenced by sqpAssignment(), sqpPrintStmt(), sqpValue(), and yyparse().

#define SQLP_SELECT   4

Definition at line 12 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_SUBTR   2 /* - */

Definition at line 21 of file sqlp.h.

Referenced by sqpOperatorCode(), and sqpOperatorName().

#define SQLP_TIME   5

Definition at line 55 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_UPDATE   5

Definition at line 13 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

#define SQLP_VARCHAR   1

Definition at line 51 of file sqlp.h.

Referenced by sqpPrintStmt(), and yyparse().

Typedef Documentation

typedef struct sqlpnode SQLPNODE

Variable Documentation

SQLPSTMT* sqlpStmt

Definition at line 38 of file sql.c.

Referenced by sqpPrintStmt(), and yyparse().