applyTableOrderAndPagination method
- @protected
- String table,
- Iterable<
Map< entries, {String, dynamic> > - int? limit,
- int? offset,
- bool? orderByID,
- OrderDirection? orderDirection,
inherited
Orders (by the ID field of table) and paginates the selected
entries: the object adapters select all the objects (no query
engine), and then apply the select's order and limits here.
Implementation
@protected
List<Map<String, dynamic>> applyTableOrderAndPagination(
String table,
Iterable<Map<String, dynamic>> entries, {
int? limit,
int? offset,
bool? orderByID,
OrderDirection? orderDirection,
}) {
var idField = getTableIDFieldName(table);
return applySelectOrderAndPagination(
entries,
(e) => e[idField],
limit: limit,
offset: offset,
orderByID: orderByID,
orderDirection: orderDirection,
).toList();
}