OpenDatabaseConfiguration
open class OpenDatabaseConfiguration: Configuration
Database configuration class used when opening a database
-
Initializes a DatabaseConfiguration
Important
Database names are restricted to using only the following characters: abcdefghijklmnopqrstuvwxyz0123456789_$()+-/
Declaration
Swift
public init(name: String? = nil, fileLocation: URL? = nil, indexes: [Indexer] = [], completionQueue: DispatchQueue = DispatchQueue.main)Parameters
nameName of database. If nil, the value returned from
defaultDatabaseNameis used. Database names are restricted to using only the following characters: abcdefghijklmnopqrstuvwxyz0123456789_$()+-/fileLocationLocal file URL of database files. If nil, the value returned from
defaultLocationis used.indexesIndexes associated with this database. See
Indexerprotocol andDatabase.Indexclass.completionQueueA dispatch queue for scheduling completion handlers. Defaults to the main queue
-
Returns a default OpenDatabaseConfiguration
Declaration
Swift
public static var `default`: OpenDatabaseConfiguration
View on GitHub
OpenDatabaseConfiguration Class Reference