tableExists method

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

Checks if the given table exists.

Implementation

@override
Statement tableExists(QualifiedTablename table) {
  return Statement(
    r'SELECT 1 FROM information_schema.tables WHERE table_schema = $1 AND table_name = $2',
    [table.namespace, table.tablename],
  );
}