module CQL::ActiveRecord::TypedColumns

Overview

Generates, for every model, the pieces of the typed query DSL (where { age >= 18 }, joins(:profile) { ... }):

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.cr

Constant 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