26 #define ZOO_SQLAPI_H 1
29 #include "ogrsf_frmts.h"
31 #if GDAL_VERSION_MAJOR >= 2
32 #include <gdal_priv.h>
41 #if GDAL_VERSION_MAJOR >=2
int init_sql(maps *conf)
Connect to the db backend.
Definition: sqlapi.c:190
void cleanFetchSql(maps *conf, int cid, OGRLayer *objects)
Definition: sqlapi.c:241
void end_sql()
Call OGRCleanupAll.
Definition: sqlapi.c:218
char * _createInitString(maps *conf, const char *key)
Create a GDAL / OGR string for connecting to a db backend defined in the key section.
Definition: sqlapi.c:60
int isRunning(maps *conf, char *pid)
Check if a service is running.
Definition: server_internal.c:965
int _init_sql(maps *conf, const char *key)
Connect to a db backend.
Definition: sqlapi.c:120
linked list of map pointer
Definition: main_conf_read.y:292
void close_sql(maps *conf, int cid)
Close any connection to the db backend.
Definition: sqlapi.c:199
KVP linked list.
Definition: service.h:244
OGRDataSource ** zoo_DS
Global GDALDataset pointer.
Definition: sqlapi.c:45
int execSql(maps *conf, int cid, const char *sqlQuery)
Execute a SQL query to the SQL Database Backend.
Definition: sqlapi.c:255
void readFinalRes(maps *conf, char *pid, map *statusInfo)
Read the Result file (.res).
Definition: server_internal.c:933
char * getStatusId(maps *conf, char *pid)
Read the sid file attached of a service if any.
Definition: service_internal.c:233
OGRLayer * fetchSql(maps *conf, int cid, const char *sqlQuery)
Fetch a tuple set by executing a SQL query to the Database Backend.
Definition: sqlapi.c:229