H2ColumnBuilder

slick.jdbc.H2Profile.H2ModelBuilder.H2ColumnBuilder
class H2ColumnBuilder(tableBuilder: TableBuilder, meta: MColumn) extends ColumnBuilder

Attributes

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

Members list

Concise view

Value members

Concrete methods

override def default: Option[Option[Any]]

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.

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.

Attributes

Definition Classes
Source:
H2Profile.scala
override def length: Option[Int]

Column length of string types

Column length of string types

Attributes

Definition Classes
Source:
H2Profile.scala
override def tpe: String

Scala type this column is mapped to

Scala type this column is mapped to

Attributes

Definition Classes
Source:
H2Profile.scala

Inherited methods

def autoInc: Boolean

Indicates whether this is an auto increment column

Indicates whether this is an auto increment column

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala

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

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

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala
def dbType: Option[String]

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

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

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala

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.

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.

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala
def name: String

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala
def nullable: Boolean

Indicates whether this is a nullable column

Indicates whether this is a nullable column

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala
def rawDefault: Option[String]

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala
def varying: Boolean

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

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

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala

Inherited fields

final val StringPattern: Regex

Regex matcher to extract string out ouf surrounding ''

Regex matcher to extract string out ouf surrounding ''

Attributes

Inherited from:
ColumnBuilder
Source:
JdbcModelBuilder.scala