Go to the documentation of this file.
26 #define ZOO_SQLAPI_H 1
28 #if defined(META_DB) || defined(USE_AMQP)
29 #include "ogrsf_frmts.h"
31 #if GDAL_VERSION_MAJOR >= 2
32 #include <gdal_priv.h>
39 #define SQL_AVAILABLE_SLOT "SELECT %s.checkAvailableExecutionSlot('%s','%s','%s',%d);"
41 #if defined(META_DB) || defined(USE_AMQP)
43 #if GDAL_VERSION_MAJOR >=2
55 #if defined(META_DB) || defined(USE_AMQP)
char * _createInitString(maps *pmsConf, const char *pccKey)
Create a GDAL / OGR string for connecting to a db backend defined in the key section.
Definition: sqlapi.c:60
void close_sql(maps *pmsConf, int iConnectionId)
Close any connection to the db backend.
Definition: sqlapi.c:228
int execSql(maps *pmsConf, int iConnectionId, const char *pcSqlQuery)
Execute a SQL query to the SQL Database Backend.
Definition: sqlapi.c:305
void filterJobByUser(maps *pmsConf, char **pcaClauseFinal, char *pcaClauseDate)
Definition: service_json.c:2246
void end_sql()
Call OGRCleanupAll.
Definition: sqlapi.c:261
linked list of map pointer
Definition: service.h:678
void cleanFetchSql(maps *pmsConf, int iConnectionId, OGRLayer *poLayer)
Clean any memory allocated by executing a request.
Definition: sqlapi.c:291
void readFinalRes(maps *conf, char *pid, map *statusInfo)
Read the Result file (.res).
Definition: server_internal.c:941
int isRunning(maps *conf, char *pid)
Check if a service is running.
Definition: server_internal.c:976
KVP linked list.
Definition: service.h:657
#define ZOO_DLL_EXPORT
Definition: service.h:34
OGRLayer * fetchSql(maps *pmsConf, int iConnectionId, const char *pcSqlQuery)
Fetch a tuple set by executing a SQL query to the Database Backend.
Definition: sqlapi.c:272
char * getStatusId(maps *conf, char *pid)
Read the sid file attached of a service if any.
Definition: service_internal.c:236
int _init_sql(maps *pmsConf, const char *pccKey)
Connect to a db backend.
Definition: sqlapi.c:148
int init_sql(maps *pmsConf)
Connect to the db backend.
Definition: sqlapi.c:218
OGRDataSource ** ppoZooDS
Global GDALDataset pointer.
Definition: sqlapi.c:45
int getCurrentId(maps *pmsConf)
Get the identifier of the current database.
Definition: sqlapi.c:335