initSql method

Future<TableF> initSql()

Implementation

Future<TableF> initSql() async {
  for (var t in dbf.tables) {
    if (t.name == name) {
      await _columns();
      return t;
    }
  }

  final table = await _initTable();

  await initIndexes();

  return table;
/*
dbf.tables.firstWhere(
      (t) {
        final found = t.name == name;
        if (found) _columns();
        return found;
      },
      orElse: () => _initTable(),
    );
*/
}