func select(
whereclause: String,
params: [Any],
orderby: [String],
cursor: StORMCursor = StORMCursor(),
joins: [StORMDataSourceJoin] = [],
having: [String] = [],
groupBy: [String] = []
) throws
Select function with specific where clause.
Parameterized statements are used, so all params should be passed in using the [Any] params array.
The whereclause should be specified in the following format: "name = ? AND email LIKE ?"
An orderby array can be specified in a String array like ["name DESC","email ASC"]
A StORMCursor can be supplied, otherwise the default values are used.
Note that the joins, having and groupBy functionality is unimplemented at this time.
The select function will populate the object with the results of the query.
func select(
columns: [String],
whereclause: String,
params: [Any],
orderby: [String],
cursor: StORMCursor = StORMCursor(),
joins: [StORMDataSourceJoin] = [],
having: [String] = [],
groupBy: [String] = []
) throws
Select function with specific where clause, and spefified columns to return.
Parameterized statements are used, so all params should be passed in using the [Any] params array.
The whereclause should be specified in the following format: "name = ? AND email LIKE ?"
An orderby array can be specified in a String array like ["name DESC","email ASC"]
A StORMCursor can be supplied, otherwise the default values are used.
Note that the joins, having and groupBy functionality is unimplemented at this time.
The select function will populate the object with the results of the query.
Presumes first property in class is the id.