slick.model

package slick.model

Slick schema model

Attributes

Members list

Type members

Classlikes

case class Column(name: String, table: QualifiedName, tpe: String, nullable: Boolean, options: Set[ColumnOption[_]])

Value parameters

tpe

qualified Scala type, e.g. java.sql.Date

Attributes

Source
Model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ForeignKey(name: Option[String], referencingTable: QualifiedName, referencingColumns: Seq[Column], referencedTable: QualifiedName, referencedColumns: Seq[Column], onUpdate: ForeignKeyAction, onDelete: ForeignKeyAction, options: Set[ForeignKeyOption[_]])

Attributes

Source
Model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed abstract class ForeignKeyAction(val action: String)

Attributes

Companion
object
Source
Model.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Cascade.type
object NoAction.type
object Restrict.type
object SetDefault.type
object SetNull.type

Attributes

Companion
class
Source
Model.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
trait ForeignKeyOption[T]

Attributes

Source
Model.scala
Supertypes
class Object
trait Matchable
class Any
case class Index(name: Option[String], table: QualifiedName, columns: Seq[Column], unique: Boolean, options: Set[IndexOption[_]])

Attributes

Source
Model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait IndexOption[T]

Attributes

Source
Model.scala
Supertypes
class Object
trait Matchable
class Any
case class Model(tables: Seq[Table], options: Set[ModelOption[_]])

A container class for Slick's data model The model can have circular references (e.g. a table has a foreign key which points back to the table). The references are broken apart by using names instead of object references for back references.

A container class for Slick's data model The model can have circular references (e.g. a table has a foreign key which points back to the table). The references are broken apart by using names instead of object references for back references.

Attributes

Source
Model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait ModelOption[T]

Attributes

Source
Model.scala
Supertypes
class Object
trait Matchable
class Any
case class PrimaryKey(name: Option[String], table: QualifiedName, columns: Seq[Column], options: Set[PrimaryKeyOption[_]])

Attributes

Source
Model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait PrimaryKeyOption[T]

Attributes

Source
Model.scala
Supertypes
class Object
trait Matchable
class Any
case class QualifiedName(table: String, schema: Option[String], catalog: Option[String])

Qualified name of a database table

Qualified name of a database table

Attributes

Source
Model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Table(name: QualifiedName, columns: Seq[Column], primaryKey: Option[PrimaryKey], foreignKeys: Seq[ForeignKey], indices: Seq[Index], options: Set[TableOption[_]])

Attributes

Source
Model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait TableOption[T]

Attributes

Source
Model.scala
Supertypes
class Object
trait Matchable
class Any