abstract class Table[T] extends AbstractTable[T]
- Alphabetic
- By Inheritance
- Table
- AbstractTable
- Rep
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
-
final
type
TableElementType = T
The client-side type of the table as defined by its * projection
The client-side type of the table as defined by its * projection
- Definition Classes
- Table → AbstractTable
Abstract Value Members
-
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 aShape
available for translating between theColumn
-based type in * and the client-side type withoutColumn
in the table's type parameter.- Definition Classes
- AbstractTable
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from RelationalProfile.Table[T] to any2stringadd[RelationalProfile.Table[T]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (RelationalProfile.Table[T], B)
- Implicit
- This member is added by an implicit conversion from RelationalProfile.Table[T] to ArrowAssoc[RelationalProfile.Table[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val O: RelationalProfile.columnOptions.type
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
collectFieldSymbols(n: Node): Iterable[FieldSymbol]
- Attributes
- protected[this]
- Definition Classes
- AbstractTable
-
def
column[C](n: String, options: ColumnOption[C]*)(implicit tt: TypedType[C]): Rep[C]
Note that Slick uses VARCHAR or VARCHAR(254) in DDL for String columns if neither ColumnOption DBType nor Length are given.
-
def
create_*: Iterable[FieldSymbol]
- Definition Classes
- AbstractTable
-
def
encodeRef(path: Node): AbstractTable[T]
Encode a reference into this Rep.
Encode a reference into this Rep.
- Definition Classes
- AbstractTable → Rep
-
def
ensuring(cond: (RelationalProfile.Table[T]) ⇒ Boolean, msg: ⇒ Any): RelationalProfile.Table[T]
- Implicit
- This member is added by an implicit conversion from RelationalProfile.Table[T] to Ensuring[RelationalProfile.Table[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (RelationalProfile.Table[T]) ⇒ Boolean): RelationalProfile.Table[T]
- Implicit
- This member is added by an implicit conversion from RelationalProfile.Table[T] to Ensuring[RelationalProfile.Table[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): RelationalProfile.Table[T]
- Implicit
- This member is added by an implicit conversion from RelationalProfile.Table[T] to Ensuring[RelationalProfile.Table[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): RelationalProfile.Table[T]
- Implicit
- This member is added by an implicit conversion from RelationalProfile.Table[T] to Ensuring[RelationalProfile.Table[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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 beingNoAction
.- onDelete
A
ForeignKeyAction
, default beingNoAction
.
- Definition Classes
- AbstractTable
-
final
def
foreignKeys: Iterable[ForeignKey]
- Definition Classes
- AbstractTable
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from RelationalProfile.Table[T] to StringFormat[RelationalProfile.Table[T]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
index[T](name: String, on: T, unique: Boolean = false)(implicit shape: Shape[_ <: FlatShapeLevel, T, _, _]): Index
Define an index or a unique constraint.
Define an index or a unique constraint.
- Definition Classes
- AbstractTable
-
def
indexes: Iterable[Index]
- Definition Classes
- AbstractTable
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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).- Definition Classes
- AbstractTable
-
final
def
primaryKeys: Iterable[PrimaryKey]
- Definition Classes
- AbstractTable
-
val
schemaName: Option[String]
- Definition Classes
- AbstractTable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tableConstraints: Iterator[Constraint]
- Definition Classes
- AbstractTable
-
def
tableIdentitySymbol: TableIdentitySymbol
- Definition Classes
- Table → AbstractTable
-
val
tableName: String
- Definition Classes
- AbstractTable
-
lazy val
tableNode: TableNode
- Definition Classes
- AbstractTable
- def tableProvider: RelationalProfile
-
val
tableTag: Tag
- Definition Classes
- AbstractTable
-
def
toNode: Node
Get the Node for this Rep.
Get the Node for this Rep.
- Definition Classes
- AbstractTable → Rep
-
def
toString(): String
- Definition Classes
- Rep → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
→[B](y: B): (RelationalProfile.Table[T], B)
- Implicit
- This member is added by an implicit conversion from RelationalProfile.Table[T] to ArrowAssoc[RelationalProfile.Table[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...