class
CQL::PrimaryKey(T)
- CQL::PrimaryKey(T)
- CQL::Column(T)
- CQL::BaseColumn
- Reference
- Object
Overview
Primary key column definition
Example:
schema.table :members do
primary :id, Int64
column :name, String
end
Defined in:
primary_key.crConstructors
Instance Method Summary
Instance methods inherited from class CQL::Column(T)
copy_to(table : Table) : BaseColumn
copy_to,
expression(table_alias : String | Nil) : Expression::BaseColumnexpression : Expression::BaseColumn expression, size : Int32 | Nil size, strict_type strict_type, type type
Constructor methods inherited from class CQL::Column(T)
new(name : Symbol, as_name : String | Nil = nil, null : Bool = false, default : DB::Any = nil, unique : Bool = false, size : Int32 | Nil = nil, index : Index | Nil = nil, version_number : Bool = false)
new
Instance methods inherited from class CQL::BaseColumn
copy_to(table : Table) : BaseColumn
copy_to
Constructor Detail
def self.new(name : Symbol = :id, as_name : String | Nil = nil, auto_increment : Bool = true, unique : Bool = true, default : DB::Any = nil)
#