slick.model

package slick.model

Slick schema model

Attributes

Members list

Concise view

Type members

Classlikes

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

Attributes

tpe

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

Source:
Model.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed abstract class ForeignKeyAction(val action: String)

Attributes

Companion:
object
Source:
Model.scala
Graph
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
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Source:
Model.scala
Graph
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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait IndexOption[T]

Attributes

Source:
Model.scala
Graph
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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait ModelOption[T]

Attributes

Source:
Model.scala
Graph
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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Source:
Model.scala
Graph
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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Table(name: QualifiedName, columns: Seq[Column], primaryKey: Option[PrimaryKey], foreignKeys: Seq[ForeignKey], indices: Seq[Index], options: Set[TableOption[_]])

Attributes

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

Attributes

Source:
Model.scala
Graph
Supertypes
class Object
trait Matchable
class Any