sqlSelectCount method

int sqlSelectCount([
  1. String condition = '',
  2. List<Object?> parameters = const []
])

Select count of rows in SQLite table

Implementation

int sqlSelectCount([
  String condition = '',
  List<Object?> parameters = const [],
]) =>
    sql
        .select(
          sqlQuerySelectLength(condition),
          parameters,
        )
        .first
        .columnAt(0);