tableExists method

  1. @override
Statement tableExists(
  1. QualifiedTablename table
)
override

Checks if the given table exists.

Implementation

@override
Statement tableExists(QualifiedTablename table) {
  return Statement(
    "SELECT 1 FROM sqlite_master WHERE type = 'table' AND name = ?",
    [table.tablename],
  );
}