SchemaManager class

Manager for creating and managing database schemas

Constructors

SchemaManager(DatabaseConnection connection)

Properties

connection DatabaseConnection
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createTable(DatabaseSchema schema) Future<bool>
Create a table if it doesn't exist
createTables(List<DatabaseSchema> schemas) Future<void>
Create multiple tables
dropTable(DatabaseSchema schema) Future<void>
Drop a table if it exists
getTableNames() Future<List<String>>
Get all table names in the database
indexExists(String indexName, String tableName) Future<bool>
Check if an index exists
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tableExists(String tableName) Future<bool>
Check if a table exists
toString() String
A string representation of this object.
inherited

Operators

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