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.
sqlite_tool.h File Reference
#include "typedefs.h"
#include "jansson.h"
#include "sqlite_library.h"
#include "sqlite3.h"
#include "linked_list.h"
Include dependency graph for sqlite_tool.h:

Go to the source code of this file.

Data Structures

struct  SQLiteTool
 A SQLiteTool is a datatype that allows access to the data stored within a SQLite instance. More...
 

Functions

const SQLITE_PREFIX char *SQLITE_SET_CLAUSE_S SQLITE_VAL ("set")
 
const SQLITE_PREFIX char *SQLITE_WHERE_CLAUSE_S SQLITE_VAL ("where")
 
char * RunSQLiteToolStatement (SQLiteTool *tool_p, const char *sql_s, int(*callback_fn)(void *data_p, int num_columns, char **columns_aa_text_ss, char **column_names_ss), void *data_p)
 
char * EasyRunSQLiteToolStatement (SQLiteTool *tool_p, const char *sql_s)
 
bool InsertSQLiteRow (SQLiteTool *tool_p, const json_t *data_p, char **error_ss)
 
bool PrepareStatement (SQLiteTool *tool_p, sqlite3_stmt **statement_pp, const char *sql_s)
 

Function Documentation

◆ SQLITE_VAL() [1/2]

const SQLITE_PREFIX char* SQLITE_SET_CLAUSE_S SQLITE_VAL ( "set"  )

◆ SQLITE_VAL() [2/2]

const SQLITE_PREFIX char* SQLITE_WHERE_CLAUSE_S SQLITE_VAL ( "where"  )

◆ RunSQLiteToolStatement()

char* RunSQLiteToolStatement ( SQLiteTool tool_p,
const char *  sql_s,
int(*)(void *data_p, int num_columns, char **columns_aa_text_ss, char **column_names_ss)  callback_fn,
void *  data_p 
)

◆ EasyRunSQLiteToolStatement()

char* EasyRunSQLiteToolStatement ( SQLiteTool tool_p,
const char *  sql_s 
)

◆ InsertSQLiteRow()

bool InsertSQLiteRow ( SQLiteTool tool_p,
const json_t *  data_p,
char **  error_ss 
)

◆ PrepareStatement()

bool PrepareStatement ( SQLiteTool tool_p,
sqlite3_stmt **  statement_pp,
const char *  sql_s 
)