Config
Object Hierarchy:
Description:
Namespace: Gda
Package: libgda-5.0
Content:
Properties:
- public string system_filename { owned get; set; }
File to use for system-wide DSN list.
- public string user_filename { owned get; set; }
File to use for per-user DSN list.
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:
- protected Config ()
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