libgda API reference | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#define GDA_CONFIG_SECTION_DATASOURCES #define GDA_CONFIG_SECTION_LAST_CONNECTIONS #define GDA_CONFIG_SECTION_LOG #define GDA_CONFIG_KEY_MAX_LAST_CONNECTIONS |
This module provides an abstraction of all the access to the underlying configuration database. Currently, this means gda-config is just a wrapper around the GConf API, but we want to keep this design just in case we want later to change this (thus only having to change this module), as well as to allow other people to write their libgda implementations for other operating systems/environments.
#define GDA_CONFIG_SECTION_LAST_CONNECTIONS "/apps/gda/LastConnections" |
#define GDA_CONFIG_KEY_MAX_LAST_CONNECTIONS "/apps/gda/MaxLastConnections" |
|
Gets the value of the specified configuration entry as a string. You are then responsible to free the returned string
|
Gets the value of the specified configuration entry as an integer
|
Gets the value of the specified configuration entry as a float
|
Gets the value of the specified configuration entry as a boolean
void gda_config_set_string (const |
Sets the given configuration entry to contain a string
void gda_config_set_int (const |
Sets the given configuration entry to contain an integer
void gda_config_set_float (const |
Sets the given configuration entry to contain a float
void gda_config_set_boolean (const |
Sets the given configuration entry to contain a boolean
void gda_config_remove_section (const |
Remove the given section from the configuration database
void gda_config_remove_key (const |
Remove the given entry from the configuration database
|
Checks whether the given section exists in the configuration system
|
Check whether the given key exists in the configuration system
void gda_config_commit (void); |
Commits all changes made to the configuration system. This means that all buffered data (that is, modified data not yet written to the configuration database), if any, is actually written to disk
void gda_config_rollback (void); |
Discards all changes made to the configuration system.
|
Return a GList containing the names of all the sections available under the given root directory.
To free the returned value, you can use gda_config_free_list
|
Returns a list of all keys that exist under the given path.
To free the returned value, you can use gda_config_free_list
void gda_config_free_list ( |
Free all memory used by the given GList, which must be the return value from either gda_config_list_sections and gda_config_list_keys
|
Allocates memory for a new
|
Make a deep copy of all the data needed to describe a GDA provider.
void gda_provider_free ( |
Frees the memory allocated with gda_provider_new and the memory allocated to struct members.
|
Searches the CORBA database for GDA providers and returns a Glist of
void gda_provider_free_list ( |
Frees a list of
|
Returns a
|
Lists all datasources configured on the system. You can then call gda_config_free_list to free the returned list
|
Returns a list of the names of all data sources set up for the given provider.
void gda_dsn_free ( |
Release all memory occupied by the given
|
Search in the database for the given data source, and return detailed information about it
void gda_dsn_set_name ( |
Set the name for the given
void gda_dsn_set_provider ( |
Set the provider for the given
void gda_dsn_set_dsn ( |
Set the connection string for the given
For example, a connection string to connect to a PostgreSQL database might look like this:
"DATABASE=my_database;HOST=localhost
to connect to the database "my_database" at the local machine. On the other hand, a string for connecting a gda-default's database, might look like:
"DIRECTORY=/home/me/database"
void gda_dsn_set_description ( |
Set the description string for the given
void gda_dsn_set_username ( |
Set the username for the given
|
Saves the given data source into the GDA configuration
|
Remove the given data source (that is, the one described in the given
|
Returns a list of all available data sources. The returned value is
a GList of
void gda_dsn_free_list ( |
Free the given list, which should be a list of
void gda_config_save_last_connection (const |
Adds an entry to the 'Last Connections' configuration section. This section is read by top level clients, such as the GnomeDbLogin widget in GNOME-DB to show the user a list of the last successful connections.