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

A datatype for storing a SQLClause on a LinkedList. More...

#include <sql_clause.h>

Collaboration diagram for SQLClauseNode:
[legend]

Public Member Functions

SQLClauseNodeAllocateSQLClauseNode (const char *key_s, const char *comp_s, const char *value_s, const char *op_s)
 Allocate a SQLClauseNode containing a fully initialised SQLClause. More...
 
void FreeSQLClauseNode (ListItem *node_p)
 Free a SQLClauseNode. More...
 

Data Fields

ListItem sqlcn_node
 The base ListItem. More...
 
const char * sqlcn_op_s
 The op for this string such as AND, OR, NOT, etc. More...
 
SQLClausesqlcn_clause_p
 The SQLClause. More...
 

Detailed Description

A datatype for storing a SQLClause on a LinkedList.

Member Function Documentation

◆ AllocateSQLClauseNode()

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.

Parameters
key_sThe key for the underlying SQLClause.
comp_sThe comparison for the underlying SQLClause.
value_sThe value for the underlying SQLClause.
op_sThe value for how the underling SQLClause will be used with other SQLClauses.
Returns
the newly-allocated SQLClauseNode or NULL upon error.

◆ FreeSQLClauseNode()

void FreeSQLClauseNode ( ListItem node_p)

Free a SQLClauseNode.

This will also call FreeSQLClause() for the contained SQLClause.

Parameters
node_pThe SQLClauseNode to free.

Field Documentation

◆ sqlcn_node

ListItem sqlcn_node

The base ListItem.

◆ sqlcn_op_s

const char* sqlcn_op_s

The op for this string such as AND, OR, NOT, etc.

◆ sqlcn_clause_p

SQLClause* sqlcn_clause_p

The SQLClause.


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