GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d37ee165c
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 ()
 
int yywrap ()
 
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 
)

◆ sqpAllocCom()

int sqpAllocCom ( SQLPSTMT st,
int  n 
)

◆ sqpAllocVal()

int sqpAllocVal ( SQLPSTMT st,
int  n 
)

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

References SQLPSTMT::aVal, NULL, SQLPSTMT::nVal, SQLPVALUE::s, and SQLPSTMT::Val.

◆ sqpAssignment()

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

Definition at line 162 of file sql.c.

◆ sqpColumn()

void sqpColumn ( char *  column)

Definition at line 102 of file sql.c.

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

◆ sqpColumnDef()

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

Definition at line 114 of file sql.c.

◆ sqpCommand()

void sqpCommand ( int  command)

Definition at line 90 of file sql.c.

References SQLPSTMT::command.

◆ sqpCopyValue()

void sqpCopyValue ( SQLPVALUE from,
SQLPVALUE to 
)

Definition at line 61 of file sql.c.

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

◆ sqpFreeNode()

void sqpFreeNode ( SQLPNODE )

Definition at line 260 of file sql.c.

References sqlpnode::column_name, free(), sqlpnode::left, sqlpnode::right, SQLPVALUE::s, and sqlpnode::value.

Referenced by sqpFreeStmt().

◆ sqpFreeStmt()

◆ sqpInitParser()

◆ sqpInitStmt()

SQLPSTMT* sqpInitStmt ( void  )

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

References st.

◆ sqpInitValue()

void sqpInitValue ( SQLPVALUE val)

Definition at line 53 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 231 of file sql.c.

References sqlpnode::column_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 209 of file sql.c.

Referenced by sqpNewColumnNode(), and sqpNewExpressionNode().

◆ sqpNewValueNode()

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

Definition at line 243 of file sql.c.

◆ sqpOperatorCode()

int sqpOperatorCode ( char *  )

Definition at line 280 of file sql.c.

◆ sqpOperatorName()

char* sqpOperatorName ( int  )

◆ sqpOrderColumn()

void sqpOrderColumn ( char *  col,
int  dir 
)

Definition at line 200 of file sql.c.

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

◆ sqpPrintStmt()

◆ sqpSaveStr()

int sqpSaveStr ( SQLPVALUE st,
char *  c 
)

Definition at line 41 of file sql.c.

Referenced by sqpColumn().

◆ sqpTable()

void sqpTable ( char *  table)

Definition at line 96 of file sql.c.

References SQLP_MAX_TABLE, and SQLPSTMT::table.

◆ sqpValue()

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

Definition at line 129 of file sql.c.

◆ yyerror()

void yyerror ( const char *  s)

◆ yyparse()

int yyparse ( void  )

Definition at line 1179 of file sqlp.tab.c.

◆ yywrap()

int yywrap ( )