tableExists method

bool tableExists(
  1. String tableName
)

Check if a table exists

Implementation

bool tableExists(String tableName) {
  final result = _database.select(
    "SELECT name FROM sqlite_master WHERE type='table' AND name=?",
    [tableName],
  );
  return result.isNotEmpty;
}