Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

db_conn.h

Go to the documentation of this file.
00001 
00005 /* GtkSQL -- an interactive graphical query tool for PostgreSQL and MySQL
00006  * Copyright (C) 1998-2003  Lionel ULMER, Darryl Luff.
00007  *
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00021  *
00022  * Generic database connection interface.
00023  *
00024  */
00025 
00026 #ifndef __DB_CONN_H__
00027 #define __DB_CONN_H__
00028 #include "dbapi.h"
00029 
00031 enum KeywordTypes {
00032     KEYWORD_SQL = 0,    
00033     KEYWORD_TABLE   = 1,    
00034     KEYWORD_FIELD   = 2     /* Field names. */
00035 };
00036 
00041 void add_keyword(DBConnection * conn, char *key, int type);
00042 
00044 DBConnector *dbconnector_find(char *key);
00045 
00047 void keywords_remove_all(DBConnection * conn);
00048 
00050 void keywords_remove(DBConnection * conn, int type);
00051 
00052 #endif

Generated on Sun May 9 19:19:16 2004 for GtkSQL by doxygen1.2.18