tableExists method

Future<bool> tableExists(
  1. String tableName
)

Check if a table exists

Implementation

Future<bool> tableExists(String tableName) async {
  final sql = _tableExistsQuery(tableName);
  final result = await connection.query(sql);
  return result.isNotEmpty;
}