ColumnOption

slick.relational.RelationalProfile.ColumnOption
object ColumnOption

Extra column options for RelationalProfile

Attributes

Source
RelationalProfile.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Default[T](defaultValue: T) extends ColumnOption[T]

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

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

Attributes

Source
RelationalProfile.scala
Supertypes
trait Serializable
trait Product
trait Equals
class ColumnOption[T]
class Object
trait Matchable
class Any
Show all
case class Length(length: Int, varying: Boolean) extends ColumnOption[Nothing]

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.

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.

Value parameters

varying

indicates whether this is just the maximum length of a varying

Attributes

Source
RelationalProfile.scala
Supertypes
trait Serializable
trait Product
trait Equals
class ColumnOption[Nothing]
class Object
trait Matchable
class Any
Show all