queryOne method
根据id,查询一个
Implementation
@override
Future<T?> queryOne(Object arg, [String? tableName]) async {
List<T>? _items = await query(tableName: tableName, where: "$_primaryKey = ?", whereArgs: [arg]);
return _items?.first;
}
根据id,查询一个
@override
Future<T?> queryOne(Object arg, [String? tableName]) async {
List<T>? _items = await query(tableName: tableName, where: "$_primaryKey = ?", whereArgs: [arg]);
return _items?.first;
}