PostgresTable class

Constructors

PostgresTable()

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

boolean(String name) → MigrationColumn
inherited
compile(StringBuffer buf, int indent) → void
compileIndexes(StringBuffer buf, String tableName, int indent) → void
Compiles the CREATE INDEX of each column of the table tableName declared with a standard index, which PostgreSQL has no clause of a CREATE TABLE for, indented by indent.
date(String name) → MigrationColumn
inherited
decimal(String name, {int? precision, int? scale}) → MigrationColumn
A decimal(precision, scale) column. Without a precision or scale, it is an unbounded decimal on PostgreSQL, and decimal(17, 3) on MySQL and MariaDB (Column.defaultPrecision and Column.defaultScale). With a precision but no scale, the scale is Column.defaultScale, or the precision if smaller, e.g. decimal(10, 3); give scale: 0 for whole numbers.
inherited
declare(String name, ColumnType type) → MigrationColumn
inherited
declareColumn(String name, Column column) → MigrationColumn
double(String name) → MigrationColumn
inherited
float(String name) → MigrationColumn
inherited
integer(String name) → MigrationColumn
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
numeric(String name, {int? precision, int? scale}) → MigrationColumn
A numeric(precision, scale) column. Without a precision or scale, it is an unbounded numeric on PostgreSQL, and numeric(17, 3) on MySQL and MariaDB (Column.defaultPrecision and Column.defaultScale). With a precision but no scale, the scale is Column.defaultScale, or the precision if smaller, e.g. numeric(10, 3); give scale: 0 for whole numbers.
inherited
serial(String name) → MigrationColumn
inherited
text(String name) → MigrationColumn
inherited
timeStamp(String name, {bool timezone = false}) → MigrationColumn
inherited
toString() → String
A string representation of this object.
inherited
varChar(String name, {int? length}) → MigrationColumn
inherited

Operators

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