Packages

c

slick.lifted

AbstractTable

abstract class AbstractTable[T] extends Rep[T]

The profile-independent superclass of all table row objects.

T

Row type for this table. Make sure it matches the type of your * projection.

Source
AbstractTable.scala
Linear Supertypes
Rep[T], AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractTable
  2. Rep
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AbstractTable(tableTag: Tag, schemaName: Option[String], tableName: String)

Type Members

  1. abstract type TableElementType

    The client-side type of the table as defined by its * projection

Abstract Value Members

  1. abstract def *: ProvenShape[T]

    The * projection of the table used as default for queries and inserts.

    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.

  2. abstract def tableIdentitySymbol: TableIdentitySymbol

Concrete Value Members

  1. def create_*: Iterable[FieldSymbol]
  2. def encodeRef(path: Node): AbstractTable[T]

    Encode a reference into this Rep.

    Encode a reference into this Rep.

    Definition Classes
    AbstractTableRep
  3. def foreignKey[P, PU, TT <: AbstractTable[_], U](name: String, sourceColumns: P, targetTableQuery: TableQuery[TT])(targetColumns: (TT) => P, onUpdate: ForeignKeyAction = ForeignKeyAction.NoAction, onDelete: ForeignKeyAction = ForeignKeyAction.NoAction)(implicit unpack: Shape[_ <: FlatShapeLevel, TT, U, _], unpackp: Shape[_ <: FlatShapeLevel, P, PU, _]): ForeignKeyQuery[TT, U]

    Define a foreign key relationship.

    Define a foreign key relationship.

    name

    The name of the foreign key in the database (only used when you define the database schema with Slick).

    sourceColumns

    A column or a projection of multiple columns from this table defining the source of the foreign key.

    targetTableQuery

    The TableQuery for the target table.

    targetColumns

    A function that maps from the target table to the column (or columns) to which the foreign key points.

    onUpdate

    A ForeignKeyAction, default being NoAction.

    onDelete

    A ForeignKeyAction, default being NoAction.

  4. final def foreignKeys: Iterable[ForeignKey]
  5. def index[T](name: String, on: T, unique: Boolean = false)(implicit shape: Shape[_ <: FlatShapeLevel, T, _, _]): Index

    Define an index or a unique constraint.

  6. def indexes: Iterable[Index]
  7. def primaryKey[T](name: String, sourceColumns: T)(implicit shape: Shape[_ <: FlatShapeLevel, T, _, _]): PrimaryKey

    Define the primary key for this table.

    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).

  8. final def primaryKeys: Iterable[PrimaryKey]
  9. val schemaName: Option[String]
  10. def tableConstraints: Iterator[Constraint]
  11. val tableName: String
  12. lazy val tableNode: TableNode
  13. val tableTag: Tag
  14. def toNode: Node

    Get the Node for this Rep.

    Get the Node for this Rep.

    Definition Classes
    AbstractTableRep
  15. def toString(): String
    Definition Classes
    Rep → AnyRef → Any