package datatypes
Type Members
- case class Column(name: String, sqlType: SqlType, familyOpt: Option[String] = None) extends Product with Serializable
Table column
Table column
- name
Name of the column
- sqlType
SQL type of the column
- familyOpt
The family of the column (optional, defined if supported by the underlying platform)
- case class ForeignKey(cols: List[ColRef], refTableLocIdOpt: Option[LocationId], refTableName: String, refCols: List[ColRef] = Nil) extends TableConstraint with Product with Serializable
Foreign key reference constraint
Foreign key reference constraint
- cols
List of columns forming the foreign key
- refTableLocIdOpt
Location id of the referenced table, if available
- refTableName
Name of the referenced table, if available
- refCols
Columns of the table referenced
- case class PrimaryKey(cols: List[ColRef]) extends TableConstraint with Product with Serializable
Primary key constraint
Primary key constraint
- cols
List of columns forming the primary key
- sealed abstract class TableConstraint extends AnyRef
Abstract base class for all table constraints