odbc_xsb.c File Reference

#include "xsb_config.h"
#include "cell_xsb.h"
#include <sql.h>
#include <sqlext.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "cinterf.h"
#include "deref.h"
#include "error_xsb.h"
#include "export.h"
#include "register.h"
#include "ptoc_tag_xsb_i.h"
#include "io_builtins_xsb.h"
#include "flags_xsb.h"
#include "auxlry.h"
#include "flag_defs_xsb.h"
#include "loader_xsb.h"
#include "memory_xsb.h"
#include "heap_xsb.h"
#include "context.h"
#include "varstring_xsb.h"
#include "thread_xsb.h"

Data Structures

struct  Cursor
struct  NumberofCursors

Defines

#define MAXCURSORNUM   200
#define MAXVARSTRLEN   65000
#define MAXI(a, b)   ((a)>(b)?(a):(b))
#define wcan_string   tsgLBuff1
#define MAX_BIND_VALS   30

Functions

void print_hdbc (char *msg, HDBC hdbc)
SWORD ODBCToXSBType (SWORD odbcType)
int GetInfoTypeType (int SQL_INFO_TYPE)
int PrintErrorMsg (struct Cursor *cur)
void SetCursorClose (struct Cursor *cur)
void ODBCConnect (CTXTdecl)
void ODBCDisconnect (CTXTdecl)
void FindFreeCursor (CTXTdecl)
void SetBindVarNum (CTXTdecl)
DllExport void call_conv write_canonical_term (CTXTdeclc Cell prologterm, int letterflag)
void string_to_char (Cell list, char **term_string)
void SetBindVal (CTXTdecl)
void Parse (CTXTdecl)
void ODBCCommit (CTXTdecl)
void ODBCRollback (CTXTdecl)
void ODBCColumns (CTXTdecl)
void ODBCTables (CTXTdecl)
void ODBCUserTables (CTXTdecl)
UDWORD DisplayColSize (SWORD coltype, UDWORD collen, UCHAR *colname)
xsbBool unify (CTXTdecltypec Cell, Cell)
void ODBCDataSources (CTXTdecl)
void ODBCDescribeSelect (CTXTdecl)
void FetchNextRow (CTXTdecl)
void ODBCConnectOption (CTXTdecl)
Cell build_codes_list (CTXTdeclc char *charptr)
int GetColumn (CTXTdecl)
void ODBCGetInfo (CTXTdecl)
void ODBCRowCount (CTXTdecl)

Variables

static Psc nullFctPsc = NULL
static long SQL_NTSval = SQL_NTS
static long SQL_NULL_DATAval = SQL_NULL_DATA
static HENV henv = NULL
NumberofCursorsFCurNum
CursorFCursor
CursorLCursor
char * term_string [MAX_BIND_VALS] = {0}

Define Documentation

#define MAX_BIND_VALS   30
 

#define MAXCURSORNUM   200
 

#define MAXI a,
b   )     ((a)>(b)?(a):(b))
 

#define MAXVARSTRLEN   65000
 

#define wcan_string   tsgLBuff1
 


Function Documentation

Cell build_codes_list CTXTdeclc char *  charptr  ) 
 

UDWORD DisplayColSize SWORD  coltype,
UDWORD  collen,
UCHAR colname
 

void FetchNextRow CTXTdecl   ) 
 

void FindFreeCursor CTXTdecl   ) 
 

int GetColumn CTXTdecl   ) 
 

int GetInfoTypeType int  SQL_INFO_TYPE  ) 
 

void ODBCColumns CTXTdecl   ) 
 

void ODBCCommit CTXTdecl   ) 
 

void ODBCConnect CTXTdecl   ) 
 

void ODBCConnectOption CTXTdecl   ) 
 

void ODBCDataSources CTXTdecl   ) 
 

void ODBCDescribeSelect CTXTdecl   ) 
 

void ODBCDisconnect CTXTdecl   ) 
 

void ODBCGetInfo CTXTdecl   ) 
 

void ODBCRollback CTXTdecl   ) 
 

void ODBCRowCount CTXTdecl   ) 
 

void ODBCTables CTXTdecl   ) 
 

SWORD ODBCToXSBType SWORD  odbcType  ) 
 

void ODBCUserTables CTXTdecl   ) 
 

void Parse CTXTdecl   ) 
 

void print_hdbc char *  msg,
HDBC  hdbc
 

int PrintErrorMsg struct Cursor cur  ) 
 

void SetBindVal CTXTdecl   ) 
 

void SetBindVarNum CTXTdecl   ) 
 

void SetCursorClose struct Cursor cur  ) 
 

void string_to_char Cell  list,
char **  term_string
 

xsbBool unify CTXTdecltypec  Cell,
Cell 
 

DllExport void call_conv write_canonical_term CTXTdeclc Cell  prologterm,
int  letterflag
 


Variable Documentation

struct NumberofCursors* FCurNum
 

struct Cursor* FCursor
 

HENV henv = NULL [static]
 

struct Cursor* LCursor
 

Psc nullFctPsc = NULL [static]
 

long SQL_NTSval = SQL_NTS [static]
 

long SQL_NULL_DATAval = SQL_NULL_DATA [static]
 

char* term_string[MAX_BIND_VALS] = {0}
 


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