Packages

class MySQLColumnBuilder extends ColumnBuilder

Source
MySQLProfile.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MySQLColumnBuilder
  2. ColumnBuilder
  3. AnyRef
  4. 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 MySQLColumnBuilder(tableBuilder: MySQLModelBuilder.TableBuilder, meta: MColumn)

Value Members

  1. final val StringPattern: Regex

    Regex matcher to extract string out ouf surrounding

    Regex matcher to extract string out ouf surrounding

    Definition Classes
    ColumnBuilder
  2. def autoInc: Boolean

    Indicates whether this is an auto increment column

    Indicates whether this is an auto increment column

    Definition Classes
    ColumnBuilder
  3. def createPrimaryKeyColumnOption: Boolean

    Indicates whether a ColumnOption Primary key should be put into the model.

    Indicates whether a ColumnOption Primary key should be put into the model. Only valid for single column primary keys.

    Definition Classes
    ColumnBuilder
  4. def dbType: Option[String]

    A (potentially non-portable) database column type.

    A (potentially non-portable) database column type. For string types, this should not include a length ascription.

    Definition Classes
    ColumnBuilder
  5. def default: Option[Option[Any]]

    The default value for the column.

    The default value for the column. The outer option is used to indicate if a default value is given. The inner Option is used to allow giving None for a nullable column. This method must not return Some(None) for a non-nullable column.

    Default values for autoInc column are automatically ignored (as if returning None).

    If ignoreInvalidDefaults = true, Slick catches scala.MatchError and java.lang.NumberFormatException thrown by this method, logs the message and treats it as no default value for convenience.

    Definition Classes
    MySQLColumnBuilderColumnBuilder
  6. def defaultColumnOption: Option[Default[_]]

    The default value for the column as a ColumnOption Default or None if no default.

    The default value for the column as a ColumnOption Default or None if no default. The value wrapped by ColumnOption Default needs to be an Option in case of a nullable column but can't be an Option in case of a non-nullable Column.

    Default values for autoInc columns are automatically ignored.

    If ignoreInvalidDefaults = true, Slick catches scala.MatchError and java.lang.NumberFormatException thrown by this method, logs the message and treats it as no default value for convenience.

    Definition Classes
    ColumnBuilder
  7. def length: Option[Int]

    Column length of string types

    Column length of string types

    Definition Classes
    MySQLColumnBuilderColumnBuilder
  8. def model: Column
    Definition Classes
    ColumnBuilder
  9. def name: String
    Definition Classes
    ColumnBuilder
  10. def nullable: Boolean

    Indicates whether this is a nullable column

    Indicates whether this is a nullable column

    Definition Classes
    ColumnBuilder
  11. def rawDefault: Option[String]
    Definition Classes
    ColumnBuilder
  12. def tpe: String

    Scala type this column is mapped to

    Scala type this column is mapped to

    Definition Classes
    ColumnBuilder
  13. def varying: Boolean

    Indicates whether this should be a varchar in case of a string column.

    Indicates whether this should be a varchar in case of a string column. Should be based on the value of dbType in the future.

    Definition Classes
    ColumnBuilder