Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the documentation of this file.
8 #ifndef CORE_SERVER_SQLITE_INCLUDE_SQL_CLAUSE_H_
9 #define CORE_SERVER_SQLITE_INCLUDE_SQL_CLAUSE_H_
void FreeSQLClause(SQLClause *clause_p)
Free a SQLClause.
SQLClause * sqlcn_clause_p
The SQLClause.
Definition: sql_clause.h:57
char * sqlc_value_s
The value to use in the query.
Definition: sql_clause.h:39
ListItem sqlcn_node
The base ListItem.
Definition: sql_clause.h:49
bool AddSQLClauseToByteBuffer(const SQLClause *clause_p, ByteBuffer *buffer_p)
Add the string representing a SQLClause to a ByteBuffer to be used as a query.
SQLClauseNode * AllocateSQLClauseNode(const char *key_s, const char *comp_s, const char *value_s, const char *op_s)
Allocate a SQLClauseNode containing a fully initialised SQLClause.
char * sqlc_key_s
The key to use.
Definition: sql_clause.h:33
#define GRASSROOTS_SQLITE_API
Definition: sqlite_library.h:46
A datatype for storing a clause used to query a database.
Definition: sql_clause.h:30
SQLClause * AllocateSQLClause(const char *key_s, const char *op_s, const char *value_s)
Allocate a SQLClause.
A doubly-linked list that can be traversed in either direction.
Definition: linked_list.h:56
char * sqlc_op_s
The operator such as =, like, <, etc.
Definition: sql_clause.h:36
A datatype for storing a SQLClause on a LinkedList.
Definition: sql_clause.h:46
const char * sqlcn_op_s
The op for this string such as AND, OR, NOT, etc.
Definition: sql_clause.h:54
void FreeSQLClauseNode(ListItem *node_p)
Free a SQLClauseNode.
A datatype to allow an automatically growing buffer for appending data to.
Definition: byte_buffer.h:35
bool AddSQLClausesToByteBuffer(LinkedList *clauses_p, ByteBuffer *buffer_p)
Add the strings representing each of the SQLClauses stored on a LinkedList of SQLClauseNodes to a Byt...
A doubly-linked node that points to its predecessor and successor.
Definition: linked_list.h:43