DataSource

public final class DataSource

A query data source factory. The current data source supported is the database.

  • Create a database data source.

    Declaration

    Swift

    public static func database(_ database: Database) -> DataSourceAs

    Parameters

    database

    The database object.

    Return Value

    The database data source.