DbConnectionInfo
public class DbConnectionInfo
Describes information used to connect to a specific database server using a specific database adapter.
-
The name of the adapter used to interact with a specific database server.
The name of the adapter specified here must be associated with the constructor function of a built-in adapter type or a custom adapter type by using the
DbAdapterFactory.registerAdaptermethod or by specifying the adapter type as optional argument when creating a newDbContextorDbLocalContext.Declaration
Swift
public var adapter: String -
Adapter-specific configuration options (optional).
Declaration
Swift
public var adapterOptions: [String : Any]? -
An adapter-specific connection string or Url containing connection details (optional). Use alternatively to or in combination with
connectionOptions.Declaration
Swift
public var connectionString: String? -
Adapter-specific connection options (optional). Use alternatively to or in combination with
connectionString.Declaration
Swift
public var connectionOptions: Any?
-
Default initializer for a
DbConnectionInfoobject.Declaration
Swift
public init(adapter: String, adapterOptions: [String: Any]? = nil, connectionString: String? = nil, connectionOptions: Any? = nil)
View on GitHub
DbConnectionInfo Class Reference