class Cql::PrimaryKey(T)
- Cql::PrimaryKey(T)
- Cql::Column(T)
- Cql::BaseColumn
- Reference
- Object
Defined in:
primary_key.crConstructors
Instance Method Summary
Instance methods inherited from class Cql::Column(T)
default : DB::Any
default,
expression
expression,
index=(index : Index | Nil)
index=,
index? : Index | Nil
index?,
length : Int32 | Nil
length,
length=(length : Int32 | Nil)
length=,
name : Symbol
name,
name=(name : Symbol)
name=,
null? : Bool
null?,
table : Table | Nil
table,
table=(table : Table | Nil)
table=,
type : Any
type,
type=(type : Any)
type=,
unique? : Bool
unique?,
validate!(value)
validate!
Constructor methods inherited from class Cql::Column(T)
new(name : Symbol, type : T.class, as_name : String | Nil = nil, null : Bool = false, default : DB::Any = nil, unique : Bool = false, size : Int32 | Nil = nil, index : Index | Nil = nil)
new
Constructor Detail
def self.new(name : Symbol = :id, type : PrimaryKeyType = Int64.class, as_name : String | Nil = nil, auto_increment : Bool = true, unique : Bool = true, default : DB::Any = nil)
#