TablePrimaryKeyConstraint class final

A PRIMARY KEY constraint set on a table.

Drift only uses this when Table.primaryKey was overridden when defining the table. If a column was marked as a primary key or auto-incrementing, a ColumnPrimaryKeyConstraint will be generated instead.

Inheritance

Properties

columns → List<TableColumn<Object>>
The columns forming the primary key.
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

compileWith(StatementCompiler compiler) → void
Compiles this component with the given StatementCompiler by invoking the relevant add method on it.
override
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