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.
SQLClauseList Struct Reference

#include <sql_clause_list.h>

Collaboration diagram for SQLClauseList:
[legend]

Public Member Functions

SQLClauseListAllocateSQLClauseList (void)
 Allocate a SQLClauseList. More...
 
void FreeSQLClauseList (SQLClauseList *clause_list_p)
 Free a SQLClauseList. More...
 
bool AddSQLClauseToSQLClauseListByParts (SQLClauseList *list_p, const char *key_s, const char *comp_s, const char *value_s, const char *op_s)
 Add a SQLClauseNode to a SQLClauseList. More...
 
char * GetAllSQLClausesAsString (SQLClauseList *list_p)
 Get the string for all SQLClauses on a SQLClauseList. More...
 

Data Fields

LinkedList sqlcl_list
 The sublist of SQLClauseNodes for this SQLClauseList. More...
 

Member Function Documentation

◆ AllocateSQLClauseList()

SQLClauseList * AllocateSQLClauseList ( void  )

Allocate a SQLClauseList.

Returns
the newly-allocated SQLClauseList or NULL upon error.

◆ FreeSQLClauseList()

void FreeSQLClauseList ( SQLClauseList clause_list_p)

Free a SQLClauseList.

Parameters
clause_list_pThe SQLClauseList to free.

◆ AddSQLClauseToSQLClauseListByParts()

bool AddSQLClauseToSQLClauseListByParts ( SQLClauseList list_p,
const char *  key_s,
const char *  comp_s,
const char *  value_s,
const char *  op_s 
)

Add a SQLClauseNode to a SQLClauseList.

Parameters
op_sThe operator the new SQLClause
Returns
the newly-allocated SQLClauseList or NULL upon error.

◆ GetAllSQLClausesAsString()

char * GetAllSQLClausesAsString ( SQLClauseList list_p)

Get the string for all SQLClauses on a SQLClauseList.

Parameters
list_pThe SQLClauseList of SQLClauses.
Returns
the newly-allocated string containing the SQLClauses as a statement or NULL upon error.

Field Documentation

◆ sqlcl_list

LinkedList sqlcl_list

The sublist of SQLClauseNodes for this SQLClauseList.


The documentation for this struct was generated from the following file: