class
CQL::DSL::Col(T)
- CQL::DSL::Col(T)
- Reference
- Object
Overview
A model column in the typed query DSL (where { age >= 18 }).
Comparisons only accept values of the column's own type T; anything else
is a compile-time error that names both types. Nullable columns are typed
by their non-nil type, and == nil / != nil mean IS NULL / IS NOT NULL.
Direct Known Subclasses
Defined in:
active_record/dsl/column.crConstructors
Instance Method Summary
- #!=(other : Col(T)) : Expression::ConditionBuilder
-
#!=(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#!=(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #!=(other : Nil) : Expression::ConditionBuilder
- #!=(value : T) : Expression::ConditionBuilder
- #!=(other : U) : NoReturn forall U
- #<(other : Col(T)) : Expression::ConditionBuilder
-
#<(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#<(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #<(value : T) : Expression::ConditionBuilder
- #<(other : U) : NoReturn forall U
- #<=(other : Col(T)) : Expression::ConditionBuilder
-
#<=(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#<=(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #<=(value : T) : Expression::ConditionBuilder
- #<=(other : U) : NoReturn forall U
- #==(other : Col(T)) : Expression::ConditionBuilder
-
#==(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#==(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #==(other : Nil) : Expression::ConditionBuilder
- #==(value : T) : Expression::ConditionBuilder
- #==(other : U) : NoReturn forall U
- #>(other : Col(T)) : Expression::ConditionBuilder
-
#>(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#>(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #>(value : T) : Expression::ConditionBuilder
- #>(other : U) : NoReturn forall U
- #>=(other : Col(T)) : Expression::ConditionBuilder
-
#>=(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#>=(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #>=(value : T) : Expression::ConditionBuilder
- #>=(other : U) : NoReturn forall U
- #between(min : T, max : T) : Expression::ConditionBuilder
- #eq(other : Col(T)) : Expression::ConditionBuilder
-
#eq(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#eq(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #eq(value : T) : Expression::ConditionBuilder
- #eq(other : U) : NoReturn forall U
- #expression : Expression::BaseColumn
- #gt(other : Col(T)) : Expression::ConditionBuilder
-
#gt(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#gt(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #gt(value : T) : Expression::ConditionBuilder
- #gt(other : U) : NoReturn forall U
- #gte(other : Col(T)) : Expression::ConditionBuilder
-
#gte(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#gte(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #gte(value : T) : Expression::ConditionBuilder
- #gte(other : U) : NoReturn forall U
-
#in(values : Array(Int)) : Expression::ConditionBuilder
Integer literals against a numeric column of another width (
id.in([1, 2])on Int64). - #in(values : Array(T)) : Expression::ConditionBuilder
- #lt(other : Col(T)) : Expression::ConditionBuilder
-
#lt(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#lt(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #lt(value : T) : Expression::ConditionBuilder
- #lt(other : U) : NoReturn forall U
- #lte(other : Col(T)) : Expression::ConditionBuilder
-
#lte(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#lte(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #lte(value : T) : Expression::ConditionBuilder
- #lte(other : U) : NoReturn forall U
- #neq(other : Col(T)) : Expression::ConditionBuilder
-
#neq(value : Int) : Expression::ConditionBuilder
An integer literal against a numeric column of another width (
id == 7on an Int64 column). -
#neq(value : Float) : Expression::ConditionBuilder
A float literal against a floating point column.
- #neq(value : T) : Expression::ConditionBuilder
- #neq(other : U) : NoReturn forall U
- #not_in(values : Array(Int)) : Expression::ConditionBuilder
- #not_in(values : Array(T)) : Expression::ConditionBuilder
- #not_null : Expression::ConditionBuilder
- #null : Expression::ConditionBuilder
Constructor Detail
Instance Method Detail
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
Integer literals against a numeric column of another width (id.in([1, 2]) on Int64).
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.
An integer literal against a numeric column of another width (id == 7 on an Int64 column).
A float literal against a floating point column.