driver_manager.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "xsb_config.h"
#include "cell_xsb.h"
#include "cinterf.h"
#include "io_builtins_xsb.h"
#include "driver_manager_defs.h"

Functions

static struct xsb_connectionHandleisConnectionHandle (char *handle)
static struct xsb_queryHandleisQueryHandle (char *handle)
static char * buildSQLQuery (prolog_term sqlQueryList)
static union functionPtrsgetDriverFunction (char *driver, int type)
static int bindReturnList (prolog_term returnList, struct xsb_data **result, struct xsb_queryHandle *)
static void freeQueryHandle (struct xsb_queryHandle *qHandle, int pos)
static void freeConnectionHandle (struct xsb_connectionHandle *cHandle, int pos)
static int closeQueryHandle (char *queryHandle)
DllExport int call_conv initialise (void)
DllExport int call_conv openConnection (void)
DllExport int call_conv closeConnection (void)
DllExport int call_conv queryConnection (void)
DllExport int call_conv prepareStatement (void)
DllExport int call_conv executePreparedStatement (void)
DllExport int call_conv closeStatement (void)
DllExport int call_conv exception (void)
DllExport int call_conv registerXSBDriver (char *drivername, int num)
DllExport int call_conv registerXSBFunction (char *drivername, int type, union functionPtrs *func)

Variables

xsb_connectionHandleCHandles [MAX_CONNECTIONS]
xsb_queryHandleQHandles [MAX_QUERIES]
driverDBdrivers [MAX_DRIVERS]
int numDrivers
int numCHandles
int numQHandles
char * errorMesg
char * errorNumber

Function Documentation

static int bindReturnList prolog_term  returnList,
struct xsb_data **  result,
struct xsb_queryHandle
[static]
 

static char * buildSQLQuery prolog_term  sqlQueryList  )  [static]
 

DllExport int call_conv closeConnection void   ) 
 

static int closeQueryHandle char *  queryHandle  )  [static]
 

DllExport int call_conv closeStatement void   ) 
 

DllExport int call_conv exception void   ) 
 

DllExport int call_conv executePreparedStatement void   ) 
 

static void freeConnectionHandle struct xsb_connectionHandle cHandle,
int  pos
[static]
 

static void freeQueryHandle struct xsb_queryHandle qHandle,
int  pos
[static]
 

static union functionPtrs * getDriverFunction char *  driver,
int  type
[static]
 

DllExport int call_conv initialise void   ) 
 

static struct xsb_connectionHandle * isConnectionHandle char *  handle  )  [static]
 

static struct xsb_queryHandle * isQueryHandle char *  handle  )  [static]
 

DllExport int call_conv openConnection void   ) 
 

DllExport int call_conv prepareStatement void   ) 
 

DllExport int call_conv queryConnection void   ) 
 

DllExport int call_conv registerXSBDriver char *  drivername,
int  num
 

DllExport int call_conv registerXSBFunction char *  drivername,
int  type,
union functionPtrs func
 


Variable Documentation

struct xsb_connectionHandle* CHandles[MAX_CONNECTIONS]
 

struct driver* DBdrivers[MAX_DRIVERS]
 

char* errorMesg
 

char* errorNumber
 

int numCHandles
 

int numDrivers
 

int numQHandles
 

struct xsb_queryHandle* QHandles[MAX_QUERIES]
 


Generated on Wed Jul 26 13:26:55 2006 for XSB by  doxygen 1.4.5