Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

db.h

Go to the documentation of this file.
00001 // db.h: To connect to/disconnect from, querying a database server
00002 // Author: Xiaoyi Ma, Steven Bird
00003 // Copyright (C) 2001 Linguistic Data Consortium, U Penn.
00004 // Web: http://www.ldc.upenn.edu/; Email: ldc@ldc.upenn.edu
00005 // For license information, see the file `LICENSE' included
00006 // with the distribution.
00007 
00008 #ifdef _MSC_VER
00009 #include <windows.h>
00010 #include "sql.h"
00011 #include "sqlext.h"
00012 #else
00013 #include "isql.h"
00014 #include "isqlext.h"
00015 #endif
00016 #include <string>
00017 
00018 using namespace std;
00019 
00020 // Connect to DB server, using specified connect string
00021 int DB_Connect (const char *connStr);
00022 
00023 // Disconnect from DB server
00024 int DB_Disconnect (void);
00025 
00026 // Prepare and execute a SQL query
00027 int DB_Query(string sqlQuery);
00028 
00029 // Handle a message
00030 void DB_MesgHandler (char *reason);
00031 
00032 // Report an error
00033 int DB_Errors (char *where);

Generated at Wed Jul 3 14:54:03 2002 for Annotation Graph API by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001