GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
sqlp.h File Reference
#include <grass/defs/sqlp.h>
Include dependency graph for sqlp.h:
This graph shows which files directly or indirectly include this file:

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

◆ SORT_ASC

#define SORT_ASC   1

Definition at line 66 of file sqlp.h.

◆ SORT_DESC

#define SORT_DESC   2

Definition at line 67 of file sqlp.h.

◆ SQLP_ADD

#define SQLP_ADD   1 /* + */

Definition at line 20 of file sqlp.h.

◆ SQLP_ADD_COLUMN

#define SQLP_ADD_COLUMN   7

Definition at line 15 of file sqlp.h.

◆ SQLP_AND

#define SQLP_AND   21

Definition at line 38 of file sqlp.h.

◆ SQLP_BOOL

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

Definition at line 47 of file sqlp.h.

◆ SQLP_CREATE

#define SQLP_CREATE   1

Definition at line 9 of file sqlp.h.

◆ SQLP_D

#define SQLP_D   4 /* float */

Definition at line 46 of file sqlp.h.

◆ SQLP_DATE

#define SQLP_DATE   4

Definition at line 54 of file sqlp.h.

◆ SQLP_DELETE

#define SQLP_DELETE   6

Definition at line 14 of file sqlp.h.

◆ SQLP_DIV

#define SQLP_DIV   4 /* / */

Definition at line 23 of file sqlp.h.

◆ SQLP_DOUBLE

#define SQLP_DOUBLE   3

Definition at line 53 of file sqlp.h.

◆ SQLP_DROP

#define SQLP_DROP   2

Definition at line 10 of file sqlp.h.

◆ SQLP_DROP_COLUMN

#define SQLP_DROP_COLUMN   8

Definition at line 16 of file sqlp.h.

◆ SQLP_EQ

#define SQLP_EQ   11 /* = */

Definition at line 26 of file sqlp.h.

◆ SQLP_EXPR

#define SQLP_EXPR   6 /* expression XXX */

Definition at line 48 of file sqlp.h.

◆ SQLP_GE

#define SQLP_GE   15 /* >= */

Definition at line 30 of file sqlp.h.

◆ SQLP_GT

#define SQLP_GT   14 /* > */

Definition at line 29 of file sqlp.h.

◆ SQLP_I

#define SQLP_I   3 /* integer */

Definition at line 45 of file sqlp.h.

◆ SQLP_INSERT

#define SQLP_INSERT   3

Definition at line 11 of file sqlp.h.

◆ SQLP_INTEGER

#define SQLP_INTEGER   2

Definition at line 52 of file sqlp.h.

◆ SQLP_ISNULL

#define SQLP_ISNULL   18 /* IS NULL */

Definition at line 34 of file sqlp.h.

◆ SQLP_LE

#define SQLP_LE   13 /* <= */

Definition at line 28 of file sqlp.h.

◆ SQLP_LT

#define SQLP_LT   12 /* < */

Definition at line 27 of file sqlp.h.

◆ SQLP_MAX_ERR

#define SQLP_MAX_ERR   500

Definition at line 58 of file sqlp.h.

◆ SQLP_MAX_TABLE

#define SQLP_MAX_TABLE   200

Definition at line 57 of file sqlp.h.

◆ SQLP_MLTP

#define SQLP_MLTP   3 /* * */

Definition at line 22 of file sqlp.h.

◆ SQLP_MTCH

#define SQLP_MTCH   17 /* ~ */

Definition at line 32 of file sqlp.h.

◆ SQLP_NE

#define SQLP_NE   16 /* <> */

Definition at line 31 of file sqlp.h.

◆ SQLP_NODE_COLUMN

#define SQLP_NODE_COLUMN   1

Definition at line 61 of file sqlp.h.

◆ SQLP_NODE_EXPRESSION

#define SQLP_NODE_EXPRESSION   3

Definition at line 63 of file sqlp.h.

◆ SQLP_NODE_VALUE

#define SQLP_NODE_VALUE   2

Definition at line 62 of file sqlp.h.

◆ SQLP_NOT

#define SQLP_NOT   23

Definition at line 40 of file sqlp.h.

◆ SQLP_NOTNULL

#define SQLP_NOTNULL   19 /* IS NULL */

Definition at line 35 of file sqlp.h.

◆ SQLP_NULL

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

Definition at line 43 of file sqlp.h.

◆ SQLP_OR

#define SQLP_OR   22

Definition at line 39 of file sqlp.h.

◆ SQLP_S

#define SQLP_S   2 /* string */

Definition at line 44 of file sqlp.h.

◆ SQLP_SELECT

#define SQLP_SELECT   4

Definition at line 12 of file sqlp.h.

◆ SQLP_SUBTR

#define SQLP_SUBTR   2 /* - */

Definition at line 21 of file sqlp.h.

◆ SQLP_TIME

#define SQLP_TIME   5

Definition at line 55 of file sqlp.h.

◆ SQLP_UPDATE

#define SQLP_UPDATE   5

Definition at line 13 of file sqlp.h.

◆ SQLP_VARCHAR

#define SQLP_VARCHAR   1

Definition at line 51 of file sqlp.h.

Typedef Documentation

◆ SQLPNODE

typedef struct sqlpnode SQLPNODE

Variable Documentation

◆ sqlpStmt

SQLPSTMT* sqlpStmt
extern

Definition at line 37 of file sql.c.

Referenced by sqpColumn(), sqpCommand(), sqpInitParser(), sqpOrderColumn(), sqpPrintStmt(), and sqpTable().