module
CQL::ActiveRecord::TypedColumns
Overview
Generates, for every model, the pieces of the typed query DSL
(where { age >= 18 }, joins(:profile) { ... }):
Model::Columns: one typed accessor per column getter, and one per association that returns the target model'sColumns;Model.cql_columnsandModel.cql_association(name);Model::Row: a lightweight record for partial selects, where every column is nilable.
Columns are discovered from typed getters, so an accessor exists exactly when the model declares a scalar getter of that name.
Defined in:
active_record/typed_columns.crConstant Summary
-
INTERNAL_GETTERS =
["destroyed", "run_destroy_callbacks", "run_after_destroy_callbacks"] of ::String -
SCALAR_TYPES =
["String", "Int8", "Int16", "Int32", "Int64", "UInt8", "UInt16", "UInt32", "UInt64", "Float32", "Float64", "Bool", "Time", "UUID", "JSON::Any"] of ::String