DataSource
public class DataSource
A query data source. used for specifiying the data source for your query. The current data source supported is the database.
-
Create a database data source.
Declaration
Swift
public static func database(_ database: Database) -> DatabaseSource
Parameters
database
The database object.
Return Value
The database data source.