Structures

The following structures are available globally.

  • Each database in your application receives its own identifier.

    Create identifiers for your non-default databases by adding a static extension to this struct:

    extension DatabaseIdentifier {
        /// My custom DB.
        public static var myCustom: DatabaseIdentifier<FooDatabase> {
            return DatabaseIdentifier("foo-custom")
        }
    }
    
    See more

    Declaration

    Swift

    public struct DatabaseIdentifier<D> : Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral where D : Database
  • Represents an application’s configured databases (zero or more).

    See more

    Declaration

    Swift

    public struct Databases : ServiceType