DatabaseIdentifier

public struct DatabaseIdentifier<D> : Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral where D : Database

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")
    }
}