ColumnDef

io.eezo.db.ColumnDef
See theColumnDef companion object
final case class ColumnDef(name: String, pgType: PgType, nullable: Boolean, primaryKey: Boolean, checks: List[Check], references: Option[String] = ...)

The runtime description of one column, produced by the Table macro.

This type deliberately renders no DDL. Every create table, alter table, and create index in the framework comes out of schema.Ddl, driven by a Change — the fresh-database path included, via Differ.diff(SchemaSnap(Nil), _). One renderer means the migration path and the reset path cannot drift apart (BACKLOG §4).

Attributes

Companion
object
Source
ColumnDef.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def quoted: String

Attributes

Source
ColumnDef.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala