gda.config
Module for [Config] class
Types 4
classConfig : gobject.object.ObjectWrap
Methods
ConfigGidBuilder builder() static nothrowGet builder for [gda.config.Config] Returns: New builder objectstring 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 modifiedbool 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.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 positionint getDsnInfoIndex(string dsnName) static nothrowGet the index (starting at 0) of the DSN named dsn_namegda.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) namedgda.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.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.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 chainingT 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 chainingFluent builder for gda.config.Config
classConfigException : ErrorWrap