createSchema method

  1. @override
Future<bool> createSchema(
  1. String name
)
override

Creates a new schema/namespace within the current database.

This is distinct from creating a database:

  • PostgreSQL: Creates a schema within the current database
  • MySQL: Equivalent to creating a database (schemas = databases)
  • SQLite: Not applicable (single schema per file)

Returns true if created, false if already exists.

Implementation

@override
Future<bool> createSchema(String name) async {
  throw UnsupportedError(
    'SnapshotSchemaDriver does not support schema management.',
  );
}