Protocols

The following protocols are available globally.

Buildable protocol

  • Defines the protocol which all query components must implement. Each query component should be able to return its representation as a String.

    See more

    Declaration

    Swift

    public protocol Buildable

ColumnCreator protocol

  • A protocol defining functions database plugins must implement to build a string representation of a Column

    See more

    Declaration

    Swift

    public protocol ColumnCreator

ConditionalClause

Connection protocol

  • Defines the protocol which all database plugins must implement.

    See more

    Declaration

    Swift

    public protocol Connection : AnyObject

Field protocol

  • Defines the protocol for columns, and aggregate and scalar functions on columns.

    See more

    Declaration

    Swift

    public protocol Field : Buildable

QueryFilterProtocol

  • Defines the protocol which should be used for all filtering clauses. Represents a filter as String value.

    Declaration

    Swift

    public protocol QueryFilterProtocol : Buildable

QueryHavingProtocol

  • Defines the protocol which should be used for all HAVING clauses. Represents a HAVING clause as String value.

    Declaration

    Swift

    public protocol QueryHavingProtocol : Buildable

IndexColumn

  • A protocol for columns used in indices.

    See more

    Declaration

    Swift

    public protocol IndexColumn

Prepared statement

  • A protocol for database specific prepared statements to implement.

    Declaration

    Swift

    public protocol PreparedStatement

Query protocol

QuerySuffixProtocol

  • Defines the protocol which should be used for all suffix clauses.

    Declaration

    Swift

    public protocol QuerySuffixProtocol : Buildable

ResultFetcher protocol

  • A protocol for retrieving query results. All database plugins must implement this protocol.

    See more

    Declaration

    Swift

    public protocol ResultFetcher

SQLDataType protocol

  • Defines the protocol for data types to be used as table column types.

    See more

    Declaration

    Swift

    public protocol SQLDataType