BaseEntRow

slick.additions.AdditionsProfile.AdditionsApi.EntityTableModule.BaseEntRow
abstract class BaseEntRow(tag: Tag) extends EntityTable[K, V], AutoNameSnakify

Attributes

Graph
Supertypes
trait AutoName
class EntityTable[K, V]
class KeyedTable[K, KeyedEntity[K, V]]
class Table[KeyedEntity[K, V]]
class AbstractTable[KeyedEntity[K, V]]
trait Rep[KeyedEntity[K, V]]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type Ent = Entity[Key, Value]

Attributes

Inherited from:
EntityTableBase
type KEnt = KeyedEntity[Key, Value]

Attributes

Inherited from:
EntityTableBase
type Key = K

Attributes

Inherited from:
KeyedTable
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

Attributes

Inherited from:
Table
type Value = V

Attributes

Inherited from:
EntityTable

Value members

Concrete methods

def tableQuery: Query[EntityTable[K, V], KEnt, Seq]

Inherited methods

def *: ProvenShape[KeyedEntity[K, V]]

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

Inherited from:
EntityTable
def Ent(v: Value): KeylessEntity[Key, Value]

Attributes

Inherited from:
EntityTable
def col[A : TypedType](implicit evidence$8: TypedType[A], name: Name, dbNameStyle: NameStyle): Rep[A]

Attributes

Inherited from:
AutoName
def col[A : TypedType](options: ColumnOption[A]*)(implicit evidence$7: TypedType[A], name: Name, dbNameStyle: NameStyle): Rep[A]

Attributes

Inherited from:
AutoName
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.

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
def create_*: Iterable[FieldSymbol]

Attributes

Inherited from:
AbstractTable
override def encodeRef(path: Node): AbstractTable[T]

Encode a reference into this Rep.

Encode a reference into this Rep.

Attributes

Definition Classes
AbstractTable -> Rep
Inherited from:
AbstractTable
def foreign[P, PU, TT <: AbstractTable[_], U](sourceColumns: P, targetTableQuery: TableQuery[TT])(targetColumns: TT => P, onUpdate: ForeignKeyAction, onDelete: ForeignKeyAction)(implicit unpackT: Shape[_ <: FlatShapeLevel, TT, U, _], unpackP: Shape[_ <: FlatShapeLevel, P, PU, _], name: Name, dbNameStyle: NameStyle): ForeignKeyQuery[TT, U]

Attributes

Inherited from:
AutoName
def foreignKey[P, PU, TT <: AbstractTable[_], U](name: String, sourceColumns: P, targetTableQuery: TableQuery[TT])(targetColumns: TT => P, onUpdate: ForeignKeyAction, onDelete: ForeignKeyAction)(implicit unpack: Shape[_ <: FlatShapeLevel, TT, U, _], unpackP: Shape[_ <: FlatShapeLevel, P, PU, _]): ForeignKeyQuery[TT, U]

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 being NoAction.

onUpdate

A ForeignKeyAction, default being NoAction.

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
final def foreignKeys: Iterable[ForeignKey]

Attributes

Inherited from:
AbstractTable
def idx[A](on: A, unique: Boolean)(implicit shape: Shape[_ <: FlatShapeLevel, A, _, _], name: Name, dbNameStyle: NameStyle): Index

Attributes

Inherited from:
AutoName
def index[A](name: String, on: A, unique: Boolean)(implicit shape: Shape[_ <: FlatShapeLevel, A, _, _]): Index

Define an index or a unique constraint.

Define an index or a unique constraint.

Attributes

Inherited from:
AbstractTable
def indexes: Iterable[Index]

Attributes

Inherited from:
AbstractTable
def key: Rep[Key]

Attributes

Inherited from:
KeyedTableBase
def keyColumnName: String

Attributes

Inherited from:
KeyedTableBase
def keyColumnOptions: List[ColumnOption[Nothing] & Singleton]

Attributes

Inherited from:
KeyedTableBase
def lookup: Rep[Lookup[K, V]]

Attributes

Inherited from:
EntityTable
def mapping: MappedProjection[V]

Attributes

Inherited from:
EntityTable
def primaryKey[A](name: String, sourceColumns: A)(implicit shape: Shape[_ <: FlatShapeLevel, A, _, _]): PrimaryKey

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
final def primaryKeys: Iterable[PrimaryKey]

Attributes

Inherited from:
AbstractTable
def tableConstraints: Iterator[Constraint]

Attributes

Inherited from:
AbstractTable
def tableIdentitySymbol: TableIdentitySymbol

Attributes

Inherited from:
Table
def tableProvider: RelationalProfile

Attributes

Inherited from:
Table
override def toNode: Node

Get the Node for this Rep.

Get the Node for this Rep.

Attributes

Definition Classes
AbstractTable -> Rep
Inherited from:
AbstractTable
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Rep -> Any
Inherited from:
Rep

Inherited fields

val O: SqlColumnOptions

Attributes

Inherited from:
Table
val schemaName: Option[String]

Attributes

Inherited from:
AbstractTable
val tableName: String

Attributes

Inherited from:
AbstractTable
lazy val tableNode: TableNode

Attributes

Inherited from:
AbstractTable
val tableTag: Tag

Attributes

Inherited from:
AbstractTable

Implicits

Inherited implicits

implicit val keyMapper: BaseColumnType[K]

Attributes

Inherited from:
KeyedTable
implicit protected def nameStyle: NameStyle

Attributes

Inherited from:
AutoNameSnakify