Packages

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

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

Source
RelationalProfile.scala
Linear Supertypes
Serializable, Product, Equals, ColumnOption[Nothing], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Length
  2. Serializable
  3. Product
  4. Equals
  5. ColumnOption
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Length(length: Int, varying: Boolean = true)

    varying

    indicates whether this is just the maximum length of a varying

Value Members

  1. val length: Int
  2. def productElementNames: Iterator[String]
    Definition Classes
    Product
  3. val varying: Boolean