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

    @available(*, deprecated, message: "Use DataSource.collection(database.defaultCollection(﹚﹚ instead.")
    public static func database(_ database: Database) -> DataSourceAs

    Parameters

    database

    The database object.

    Return Value

    The database data source.

  • Undocumented

    Declaration

    Swift

    public static func collection(_ collection: Collection) -> DataSourceAs