references

abstract fun references(vararg column: KQLiteColumn<*>): ForeignKeyConstraint

This corresponds to the REFERENCES clause in a FOREIGN KEY definition.

The number of columns specified here must match the number of columns in the ConstraintBuilder.foreignKey clause.

Example

foreignKey(childColumnA, childColumnB)
.references(ParentTable.parentColumnX, ParentTable.parentColumnY)

Return

The ForeignKeyConstraint instance for further chaining.

Author

MOHAMMAD AZIM ANSARI

Parameters

column

The columns to reference in foreign key.