PostgresSchema class

A PostgreSQL database schema generator

Constructors

PostgresSchema()
factory

Properties

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

Methods

alter(String tableName, void callback(MutableTable table)) → void
compile() → String
create(String tableName, void callback(Table table)) → void
createIfNotExists(String tableName, void callback(Table table)) → void
drop(String tableName, {bool cascade = false}) → void
dropAll(Iterable<String> tableNames, {bool cascade = false}) → void
inherited
indexes(String tableName, void callback(MutableIndexes table)) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(Session session) → Future<int>
Runs the SQL of the schema with session, and throws if it fails: in a transaction of its own, if session is a Connection or another that runs them, or in that of a transaction it is of.
toString() → String
A string representation of this object.
inherited

Operators

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