00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include <eyedb/eyedb.h>
00014
00015 #include "utils.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 __utils_init = False;
00038
00039 #define _packageInit(DB) \
00040 \
00041 if (!__utils_init) { \
00042 utils::init(); \
00043 __utils_init = True; \
00044 } \
00045 \
00046 if (!(DB)->getUserData("eyedb:utils")) { \
00047 Status s = utilsDatabase::checkSchema((DB)->getSchema()); \
00048 if (s) return s; \
00049 utilsDatabase::setConsApp(DB); \
00050 (DB)->setUserData("eyedb:utils", (void *)1); \
00051 }
00052