Packages

object ColumnOption

Extra column options for RelationalProfile

Source
RelationalProfile.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ColumnOption
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class Default[T](defaultValue: T) extends ColumnOption[T] with Product with Serializable

    Default value for the column.

    Default value for the column. Needs to wrap an Option for nullable Columns.

  2. case class Length(length: Int, varying: Boolean = true) extends ColumnOption[Nothing] with Product with Serializable

    Number of unicode characters for string-like types.

    Number of unicode characters for string-like types. Unlike DBType this is portable between different DBMS. Note that for DDL Slick currently picks type CHAR when varying=false and VARCHAR when varying=true. Slick uses VARCHAR or VARCHAR(254) in DDL for String columns if neither ColumnOption DBType nor Length are given.

    varying

    indicates whether this is just the maximum length of a varying