GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-7413740dd8
defs/sqlp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int my_yyinput (char *buf, int max_size)
 
void yyerror (const char *s)
 
int yyparse (void)
 
int yywrap (void)
 
int sqpSaveStr (SQLPVALUE *st, char *c)
 
void sqpInitValue (SQLPVALUE *val)
 
void sqpCopyValue (SQLPVALUE *from, SQLPVALUE *to)
 
SQLPSTMTsqpInitStmt (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)
 
SQLPNODEsqpNewNode (void)
 
SQLPNODEsqpNewExpressionNode (int oper, SQLPNODE *left, SQLPNODE *right)
 
SQLPNODEsqpNewColumnNode (char *name)
 
SQLPNODEsqpNewValueNode (char *strval, int intval, double dblval, int type)
 
void sqpFreeNode (SQLPNODE *)
 

Function Documentation

◆ my_yyinput()

int my_yyinput ( char *  buf,
int  max_size 
)

◆ sqpAllocCol()

int sqpAllocCol ( SQLPSTMT st,
int  n 
)

Definition at line 36 of file db/sqlp/alloc.c.

References NULL, and st.

Referenced by sqpColumn().

◆ sqpAllocCom()

int sqpAllocCom ( SQLPSTMT st,
int  n 
)

◆ sqpAllocVal()

int sqpAllocVal ( SQLPSTMT st,
int  n 
)

Definition at line 57 of file db/sqlp/alloc.c.

References NULL, and st.

◆ sqpAssignment()

void sqpAssignment ( char *  column,
char *  strval,
int  intval,
double  dblval,
SQLPNODE expr,
int  type 
)

Definition at line 161 of file sql.c.

◆ sqpColumn()

void sqpColumn ( char *  column)

Definition at line 101 of file sql.c.

References SQLPSTMT::Col, SQLPSTMT::nCol, sqlpStmt, sqpAllocCol(), and sqpSaveStr().

◆ sqpColumnDef()

void sqpColumnDef ( char *  column,
int  type,
int  width,
int  decimals 
)

Definition at line 113 of file sql.c.

◆ sqpCommand()

void sqpCommand ( int  command)

Definition at line 89 of file sql.c.

References SQLPSTMT::command, and sqlpStmt.

◆ sqpCopyValue()

void sqpCopyValue ( SQLPVALUE from,
SQLPVALUE to 
)

Definition at line 60 of file sql.c.

References SQLPVALUE::d, free(), SQLPVALUE::i, SQLPVALUE::s, and SQLPVALUE::type.

◆ sqpFreeNode()

void sqpFreeNode ( SQLPNODE np)

◆ sqpFreeStmt()

int sqpFreeStmt ( SQLPSTMT st)

Definition at line 75 of file db/sqlp/alloc.c.

References free(), sqpFreeNode(), and st.

◆ sqpInitParser()

◆ sqpInitStmt()

SQLPSTMT* sqpInitStmt ( void  )

Definition at line 26 of file db/sqlp/alloc.c.

References st.

◆ sqpInitValue()

void sqpInitValue ( SQLPVALUE val)

Definition at line 52 of file sql.c.

References SQLPVALUE::d, SQLPVALUE::i, NULL, SQLPVALUE::s, SQLP_NULL, and SQLPVALUE::type.

◆ sqpNewColumnNode()

SQLPNODE* sqpNewColumnNode ( char *  name)

Definition at line 230 of file sql.c.

References sqlpnode::column_name, name, sqlpnode::node_type, SQLP_NODE_COLUMN, and sqpNewNode().

◆ sqpNewExpressionNode()

SQLPNODE* sqpNewExpressionNode ( int  oper,
SQLPNODE left,
SQLPNODE right 
)

◆ sqpNewNode()

SQLPNODE* sqpNewNode ( void  )

Definition at line 208 of file sql.c.

Referenced by sqpNewColumnNode(), and sqpNewExpressionNode().

◆ sqpNewValueNode()

SQLPNODE* sqpNewValueNode ( char *  strval,
int  intval,
double  dblval,
int  type 
)

Definition at line 242 of file sql.c.

◆ sqpOperatorCode()

int sqpOperatorCode ( char *  oper)

Definition at line 279 of file sql.c.

◆ sqpOperatorName()

char* sqpOperatorName ( int  oper)

◆ sqpOrderColumn()

void sqpOrderColumn ( char *  col,
int  dir 
)

Definition at line 199 of file sql.c.

References SQLPSTMT::orderCol, SQLPSTMT::orderDir, sqlpStmt, and strcpy.

◆ sqpPrintStmt()

◆ sqpSaveStr()

int sqpSaveStr ( SQLPVALUE st,
char *  c 
)

Definition at line 40 of file sql.c.

Referenced by sqpColumn().

◆ sqpTable()

void sqpTable ( char *  table)

Definition at line 95 of file sql.c.

References SQLP_MAX_TABLE, sqlpStmt, and SQLPSTMT::table.

◆ sqpValue()

void sqpValue ( char *  strval,
int  intval,
double  dblval,
int  type 
)

Definition at line 128 of file sql.c.

◆ yyerror()

void yyerror ( const char *  s)

◆ yyparse()

◆ yywrap()

int yywrap ( void  )