gda.config

Module for [Config] class

Types 4

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Config self() nothrowReturns `this`, for use in `with` statements.
ConfigGidBuilder builder() static nothrowGet builder for [gda.config.Config] Returns: New builder object
string systemFilename() @property nothrowGet `systemFilename` property. Returns: File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
void systemFilename(string propval) @property nothrowSet `systemFilename` property. Params: propval = File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
string userFilename() @property nothrowGet `userFilename` property. Returns: File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
void userFilename(string propval) @property nothrowSet `userFilename` property. Params: propval = File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
bool canModifySystemConfig() static nothrowTells if the global (system) configuration can be modified (considering system permissions and settings) Returns: TRUE if system-wide configuration can be modified
bool defineDsn(gda.dsn_info.DsnInfo info) staticAdd or update a DSN from the definition in info.
bool dsnNeedsAuthentication(string dsnName) static nothrowTells if the data source identified as dsn_name needs any authentication. If a <username> and optionally a <password> are specified, they are ignored.
glib.types.Quark errorQuark() static nothrow
gda.config.Config get() static nothrowGet a pointer to the global (unique) #GdaConfig object. This functions increments the reference count of the object, so you need to call [gobject.object.ObjectWrap.unref] on it once finished. Retur...
gda.dsn_info.DsnInfo getDsnInfo(string dsnName) static nothrowGet information about the DSN named dsn_name.
gda.dsn_info.DsnInfo getDsnInfoAtIndex(int index) static nothrowGet a pointer to a read-only #GdaDsnInfo at the index position
int getDsnInfoIndex(string dsnName) static nothrowGet the index (starting at 0) of the DSN named dsn_name
int getNbDsn() static nothrowGet the number of defined DSN Returns: the number of defined DSN
gda.server_provider.ServerProvider getProvider(string providerName) staticGet a pointer to the session-wide #GdaServerProvider for the provider named provider_name. The caller must not call [gobject.object.ObjectWrap.unref] on the returned object.
gda.provider_info.ProviderInfo getProviderInfo(string providerName) static nothrowGet some information about the a database provider (adapter) named
gda.data_model.DataModel listDsn() static nothrowGet a #GdaDataModel representing all the configured DSN, and keeping itself up to date with the changes in the declared DSN.
gda.data_model.DataModel listProviders() static nothrowGet a #GdaDataModel representing all the installed database providers.
bool removeDsn(string dsnName) staticRemove the DSN named dsn_name.
gulong connectDsnAdded(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == void *))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.config.Config))) && Parameters!T.length < 3) nothrowConnect to `DsnAdded` signal.
gulong connectDsnChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == void *))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.config.Config))) && Parameters!T.length < 3) nothrowConnect to `DsnChanged` signal.
gulong connectDsnRemoved(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == void *))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.config.Config))) && Parameters!T.length < 3) nothrowConnect to `DsnRemoved` signal.
gulong connectDsnToBeRemoved(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == void *))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gda.config.Config))) && Parameters!T.length < 3) nothrowConnect to `DsnToBeRemoved` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gda.config.Config

Methods
T systemFilename(string propval) nothrowSet `systemFilename` property. Params: propval = File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded. Returns: Builder instance for fluent chaining
T userFilename(string propval) nothrowSet `userFilename` property. Params: propval = File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded. Returns: Builder instance for fluent chaining

Fluent builder for gda.config.Config

Methods
Config build() nothrowCreate object from builder. Returns: New object
Constructors
this(GError * err)
this(Code code, string msg)