query static method
Implementation
static Future<List<Post>> query({String? where, String? orderby}) async {
List<Post> posts = [];
List<Map<String, dynamic>> entries =
await Database.query(tableName, where: where, orderby: orderby);
for (var entry in entries) {
Post? post = _fromMap(entry);
if (post != null) posts.add(post);
}
return posts;
}