vttp
An HTTP backed Virtual Table extension for SQLite
Loading...
Searching...
No Matches
Classes | Macros | Functions
sql.h File Reference

SQL related functions including a basic parser. More...

#include "pyc.h"
Include dependency graph for sql.h:

Go to the source code of this file.

Classes

struct  column_def
 

Macros

#define ICOL_URL   0
 
#define ICOL_HEADERS   1
 
#define ICOL_BODY   2
 
#define ICOL_BIT(i)   (1u << (i))
 

Functions

struct column_defparse_column_defs (int argc, const char *const *argv, size_t *num_columns)
 
char * resolve_hidden_col (struct column_def *column_defs, uint icol, int plan_mask, char *arg_value)
 

Detailed Description

SQL related functions including a basic parser.

Function Documentation

◆ parse_column_defs()

struct column_def * parse_column_defs ( int  argc,
const char *const *  argv,
size_t *  num_columns 
)

Allocate the column_def from user ARGC and ARGV, optionally writing out the number resolved columns to NUM_COLUMNS if it isn't NULL.