00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include <eyedb/eyedb.h>
00014
00015 #include "oqlctb.h"
00016
00017 using namespace eyedb;
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 static Bool __oqlctb_init = False;
00038
00039 #define _packageInit(DB) \
00040 \
00041 if (!__oqlctb_init) { \
00042 oqlctb::init(); \
00043 __oqlctb_init = True; \
00044 } \
00045 \
00046 if (!(DB)->getUserData("eyedb:oqlctb")) { \
00047 Status s = oqlctbDatabase::checkSchema((DB)->getSchema()); \
00048 if (s) return s; \
00049 oqlctbDatabase::setConsApp(DB); \
00050 (DB)->setUserData("eyedb:oqlctb", (void *)1); \
00051 }
00052