Posts
Attributes
- Source
- ModelBuilderTest.scala
- Graph
-
- Supertypes
-
class Table[(Int, String, Option[Int], Boolean, String)]class AbstractTable[(Int, String, Option[Int], Boolean, String)]trait Rep[(Int, String, Option[Int], Boolean, String)]class Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited types
The client-side type of the table as defined by its * projection
The client-side type of the table as defined by its * projection
Attributes
- Inherited from:
- Table
- Source
- RelationalProfile.scala
Value members
Concrete methods
The * projection of the table used as default for queries and inserts. Should include all columns as a tuple, HList or custom shape and optionally map them to a custom entity type using the <> operator. The ProvenShape
return type ensures that there is a Shape
available for translating between the Column
-based type in * and the client-side type without Column
in the table's type parameter.
The * projection of the table used as default for queries and inserts. Should include all columns as a tuple, HList or custom shape and optionally map them to a custom entity type using the <> operator. The ProvenShape
return type ensures that there is a Shape
available for translating between the Column
-based type in * and the client-side type without Column
in the table's type parameter.
Attributes
- Source
- ModelBuilderTest.scala
Attributes
- Source
- ModelBuilderTest.scala
Attributes
- Source
- ModelBuilderTest.scala
Attributes
- Source
- ModelBuilderTest.scala
Attributes
- Source
- ModelBuilderTest.scala
Attributes
- Source
- ModelBuilderTest.scala
Attributes
- Source
- ModelBuilderTest.scala
Attributes
- Source
- ModelBuilderTest.scala
Inherited methods
Note that Slick uses VARCHAR or VARCHAR(254) in DDL for String columns if neither ColumnOption DBType nor Length are given.
Note that Slick uses VARCHAR or VARCHAR(254) in DDL for String columns if neither ColumnOption DBType nor Length are given.
Attributes
- Inherited from:
- Table
- Source
- RelationalProfile.scala
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Encode a reference into this Rep.
Encode a reference into this Rep.
Attributes
- Definition Classes
-
AbstractTable -> Rep
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Define a foreign key relationship.
Define a foreign key relationship.
Value parameters
- name
-
The name of the foreign key in the database (only used when you define the database schema with Slick).
- onDelete
-
A
ForeignKeyAction
, default beingNoAction
. - onUpdate
-
A
ForeignKeyAction
, default beingNoAction
. - sourceColumns
-
A column or a projection of multiple columns from this table defining the source of the foreign key.
- targetColumns
-
A function that maps from the target table to the column (or columns) to which the foreign key points.
- targetTableQuery
-
The
TableQuery
for the target table.
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Define an index or a unique constraint.
Define an index or a unique constraint.
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Define the primary key for this table. It is usually simpler to use the O.PrimaryKey
option on the primary key column but this method allows you to define compound primary keys or give them user-defined names (when defining the database schema with Slick).
Define the primary key for this table. It is usually simpler to use the O.PrimaryKey
option on the primary key column but this method allows you to define compound primary keys or give them user-defined names (when defining the database schema with Slick).
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Attributes
- Inherited from:
- Table
- Source
- RelationalProfile.scala
Attributes
- Inherited from:
- Table
- Source
- RelationalProfile.scala
Get the Node for this Rep.
Get the Node for this Rep.
Attributes
- Definition Classes
-
AbstractTable -> Rep
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Inherited fields
Attributes
- Inherited from:
- Table
- Source
- RelationalProfile.scala
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala
Attributes
- Inherited from:
- AbstractTable
- Source
- AbstractTable.scala