InitializedSchema class Null safety

Contains an initialized schema with all tables, views, triggers and indices.

You can use the connection for your database class and the rawDatabase to insert data before the migration.

Constructors

InitializedSchema(Database rawDatabase, DatabaseConnection _createConnection())

Properties

connection DatabaseConnection
A database connection with a prepared schema.
@Deprecated('Use newConnection instead, and store the result'), late, final
hashCode int
The hash code for this object.
read-only, inherited
rawDatabase Database
The raw database from the sqlite3 package.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

newConnection() DatabaseConnection
Creates a new database connection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited