Protocols

The following protocols are available globally.

  • This protocol describes a handle to a database.

    This is implemented by both our real database connections and our in-memory database connection for testing.

    See more

    Declaration

    Swift

    public protocol DatabaseConnection
  • This protocol allows a type to provide a custom scheme for encoding it in the database.

    See more

    Declaration

    Swift

    public protocol DatabaseValueConvertible
  • This protocol describes a transaction that is occurring on a database.

    See more

    Declaration

    Swift

    public protocol Transaction
  • This type describes a value that can be directly encoded as a Tuple.

    See more

    Declaration

    Swift

    public protocol TupleConvertible
  • This type describes an adapter that can encode and decode a value as a FoundationDB Tuple.

    See more

    Declaration

    Swift

    public protocol TupleAdapter