ZOO-Project: sqlapi.c File Reference
ZOO-Project
sqlapi.c File Reference
#include "ogr_api.h"
#include "ogrsf_frmts.h"
#include "ogr_p.h"
#include "response_print.h"
#include <fcgi_stdio.h>
#include "sqlapi.h"
#include "service_callback.h"

Functions

char * _createInitString (maps *conf, const char *key)
 Create a GDAL / OGR string for connecting to a db backend defined in the key section. More...
 
char * createInitString (maps *conf)
 Create a GDAL / OGR string for connecting to the db backend. More...
 
int _init_sql (maps *conf, const char *key)
 Connect to a db backend. More...
 
int init_sql (maps *conf)
 Connect to the db backend. More...
 
void close_sql (maps *conf, int cid)
 Close any connection to the db backend. More...
 
void end_sql ()
 Call OGRCleanupAll. More...
 
OGRLayer * fetchSql (maps *conf, int cid, const char *sqlQuery)
 Fetch a tuple set by executing a SQL query to the Database Backend. More...
 
void cleanFetchSql (maps *conf, int cid, OGRLayer *objects)
 
int execSql (maps *conf, int cid, const char *sqlQuery)
 Execute a SQL query to the SQL Database Backend. More...
 
void cleanUpResultSet (const maps *conf, int cid)
 Clean any memory allocated by executing a request. More...
 

Variables

OGRDataSource ** zoo_DS = NULL
 Global GDALDataset pointer. More...
 
OGRLayer * zoo_ResultSet = NULL
 Global OGRLayer pointer pointing to the lastest result set. More...
 

Function Documentation