Database
public struct Database: Fn
Given the name of a database, this function returns a valid ref that points to it. The database function only looks up child databases so finding a database using this function requires you to provide an admin key from the parent database.
-
Declaration
Swift
public init(_ name: String, scope: Expr? = nil)
Parameters
name
The database name.
scope
The scope database.