gda.config
Module for [Config] class
Types 4
classConfig : gobject.object.ObjectWrap
Methods
ConfigGidBuilder builder()Get builder for [gda.config.Config] Returns: New builder objectstring systemFilename() @propertyGet `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) @propertySet `systemFilename` property. Params: propval = File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.string userFilename() @propertyGet `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) @propertySet `userFilename` property. Params: propval = File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.bool canModifySystemConfig()Tells if the global (system) configuration can be modified (considering system permissions and settings) Returns: TRUE if system-wide configuration can be modifiedbool defineDsn(gda.dsn_info.DsnInfo info)Add or update a DSN from the definition in info.bool dsnNeedsAuthentication(string dsnName)Tells 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()Get 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)Get information about the DSN named dsn_name.gda.dsn_info.DsnInfo getDsnInfoAtIndex(int index)Get a pointer to a read-only #GdaDsnInfo at the index positionint getDsnInfoIndex(string dsnName)Get the index (starting at 0) of the DSN named dsn_nameint getNbDsn()Get the number of defined DSN Returns: the number of defined DSNgda.server_provider.ServerProvider getProvider(string providerName)Get 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)Get some information about the a database provider (adapter) namedgda.data_model.DataModel listDsn()Get 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()Get a #GdaDataModel representing all the installed database providers.bool removeDsn(string dsnName)Remove 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)Connect 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)Connect 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)Connect 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)Connect to `DsnToBeRemoved` signal.Methods
T systemFilename(string propval)Set `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)Set `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 chainingclassConfigException : ErrorWrap