Config
Object Hierarchy:
Description:
[ CCode ( type_id = "gda_config_get_type ()" ) ]
public class Config : Object
Content:
Properties:
Static methods:
- public static Config @get ()
Get a pointer to the global (unique) Config
object.
- public static bool can_modify_system_config ()
Tells if the global (system) configuration can be modified
(considering system permissions and settings)
- public static bool define_dsn (DsnInfo info) throws Error
Add or update a DSN from the definition in info
.
- public static bool dsn_needs_authentication (string dsn_name)
Tells if the data source identified as dsn_name
needs any
authentication.
- public static Quark error_quark ()
- public static unowned DsnInfo get_dsn_info (string dsn_name)
Get information about the DSN named dsn_name
.
- public static unowned DsnInfo get_dsn_info_at_index (int index)
Get a pointer to a read-only
DsnInfo at the index
position
- public static int get_dsn_info_index (string dsn_name)
Get the index (starting at 0) of the DSN named dsn_name
- public static int get_nb_dsn ()
Get the number of defined DSN
- public static unowned ServerProvider get_provider (string provider_name) throws Error
Get a pointer to the session-wide
ServerProvider for the provider named provider_name
.
- public static unowned ProviderInfo? get_provider_info (string provider_name)
Get some information about the a database provider (adapter) named
- public static DataModel list_dsn ()
Get a DataModel
representing all the configured DSN, and keeping itself up to date with the changes in the declared DSN.
- public static DataModel list_providers ()
Get a DataModel
representing all the installed database providers.
- public static bool remove_dsn (string dsn_name) throws Error
Remove the DSN named dsn_name
.
Creation methods:
Signals:
- public virtual signal void dsn_added (void* new_dsn)
Gets emitted whenever a new DSN has been defined
- public virtual signal void dsn_changed (void* dsn)
Gets emitted whenever a DSN's definition has been changed
- public virtual signal void dsn_removed (void* old_dsn)
Gets emitted whenever a DSN has been removed
- public virtual signal void dsn_to_be_removed (void* old_dsn)
Gets emitted whenever a DSN is about to be removed
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref