findWhereInRelation method

Future<List> findWhereInRelation({
  1. Database? database,
  2. required Entity entity,
  3. required List<Column> columns,
  4. String? whereParameters,
  5. String? orderParameters,
  6. List<String>? fields,
})

Implementation

Future<List> findWhereInRelation({
  Database? database,
  required Entity entity,
  required List<Column> columns,
  String? whereParameters,
  String? orderParameters,
  List<String>? fields,
}) async {
  final Database db = database != null ? database : this.database;
  return (await db.query(entity.tableName,
      where: whereParameters, orderBy: orderParameters, columns: fields));
}