SchemaBuilder<R> class
Carries the Table reference for a schema under construction. Column
builder extensions ($.integer, $.text, etc.) register columns on
this builder's table.
- Available extensions
Constructors
-
SchemaBuilder(Table<
Schema< table)R> , R> -
Construct a builder for a specific
table.const
Properties
Methods
-
column<
V extends Object, W extends V?> (String name, Field< R, W> field, {String? sqlType, ColumnOr<V> ? defaultValue}) → ColumnType<W> -
Available on SchemaBuilder<
Register a plain column.R> , provided by the ColumnBuilderProvider extension -
custom<
I extends Object, O extends Object, W extends I?> (String name, Field< R, W> field, {required ColumnTransformer<I, O> transformer, String? sqlType, ColumnOr<I> ? defaultValue}) → ColumnType<W> -
Available on SchemaBuilder<
Register a column with a customR> , provided by the ColumnBuilderProvider extensiontransformerbetween the in-memory typeIand the SQL storage typeO.Wis the field value type, so nullability follows the accessor (see column). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited