#include "forms.h"
Include dependency graph for dbapi.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | _dbconnector |
Data passed from the application to the driver when initiating a connection. More... | |
struct | _keyword |
Auto-completion keyword list. More... | |
struct | db_conn |
Per-connection database structure. More... | |
struct | DBFieldDef |
Field record. More... | |
struct | DBTableDef |
Table record. More... | |
Typedefs | |
typedef _dbconnector | DBConnector |
DBConnector is the type used to refer to the _dbconnector structure. | |
typedef _keyword | Keyword |
Auto-completion keyword list. | |
typedef db_conn | DBConnection |
DBConnection is the type used to refer to the db_conn structure. | |
typedef DBConnector *(* | db_register_func )(void(*error_dialog)(char *, char *)) |
Returns an initialised DBConnector for the database driver. | |
Enumerations | |
enum | QueryStatus |
Query Status codes. | |
enum | ConnectStatus |
How to connect. | |
Functions | |
DBConnection * | db_connect (DBConnector *dbc) |
Connects to the database defined in the current workspace. | |
DBConnection * | db_connect_url (char *url) |
Connects to the database specified in th URL. | |
void | db_disconnect (DBConnection *conn, void(*display_error)(char *, char *)) |
Disconnect from database. | |
DBConnector * | dbconnector_new (void) |
Allocates a new empty DBConnector. |
Definition in file dbapi.h.
|
Connects to the database defined in the current workspace.
Definition at line 76 of file dbapi.c. References db_conn::connectionStatus, and _dbconnector::db_connect_callback. Referenced by db_connect_dialog_reconnect(). |
|
Connects to the database specified in th URL.
Definition at line 42 of file dbapi.c. References db_conn::connectionStatus, _dbconnector::db_connect_callback, _dbconnector::db_frm, dburl_get_connector(), and _dbconnector::url_to_form. Referenced by cfg_parse_cmdline(), and lic_connect(). |
|
Disconnect from database.
Definition at line 91 of file dbapi.c. References db_conn::DBdisconnect, and display_error(). Referenced by gui_disconnect(). |
|
Allocates a new empty DBConnector. All fields are NULL-filled.
Definition at line 68 of file dbapi.c. Referenced by register_PostgreSQL(), and register_XPath(). |