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

db_conn.h File Reference

Defines the database driver interface. More...

#include "dbapi.h"

Include dependency graph for db_conn.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Enumerations

enum  KeywordTypes { KEYWORD_SQL = 0, KEYWORD_TABLE = 1 }
 Types of keywords. More...


Functions

void add_keyword (DBConnection *conn, char *key, int type)
 Add a keyword to the connection.

DBConnectordbconnector_find (char *key)
 Find a connector for a specified database type.

void keywords_remove_all (DBConnection *conn)
 Remove all keywords.

void keywords_remove (DBConnection *conn, int type)
 Remove all keywords of the specified type.


Detailed Description

Defines the database driver interface.

Author:
Lionel ULMER , Darryl Luff

Definition in file db_conn.h.


Enumeration Type Documentation

enum KeywordTypes
 

Types of keywords.

Enumeration values:
KEYWORD_SQL  SQL keywords.
KEYWORD_TABLE  Table names.

Definition at line 31 of file db_conn.h.


Function Documentation

void add_keyword DBConnection   conn,
char *    key,
int    type
 

Add a keyword to the connection.

Parameters:
conn  The database connection.
key  The keyword.
type  The type of keyword.

Definition at line 35 of file db_conn.c.

References _keyword::key, db_conn::keylist, _keyword::next, and _keyword::type.

Referenced by xpath_dbconnection_new().

DBConnector* dbconnector_find char *    key
 

Find a connector for a specified database type.

Parameters:
key  The type name. This needs to match the 'dbtype' field in the DBConnector structure.
Returns:
A pointer to the connector, or NULL.

Definition at line 83 of file db_conn.c.

References _dbconnector::dbtype.

Referenced by dburl_get_connector().

void keywords_remove DBConnection   conn,
int    type
 

Remove all keywords of the specified type.

Parameters:
conn  The database connection.
type  The type of keywords to remove.

Definition at line 116 of file db_conn.c.

References _keyword::key, db_conn::keylist, _keyword::next, and _keyword::type.

void keywords_remove_all DBConnection   conn
 

Remove all keywords.

Parameters:
conn  The database connection.

Definition at line 99 of file db_conn.c.

References _keyword::key, db_conn::keylist, and _keyword::next.

Referenced by mysql_dbconnection_free(), and xpath_dbconnection_free().


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