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

db_conn.c File Reference

Functions for manipulating DBConnection's. More...

#include "../config.h"
#include <stdlib.h>
#include <string.h>
#include "db_conn.h"

Include dependency graph for db_conn.c:

Include dependency graph

Go to the source code of this file.

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

Functions for manipulating DBConnection's.

Author:
Lionel ULMER , Darryl Luff

Definition in file db_conn.c.


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