annotation CQL::ActiveRecord::StaticQuery

Overview

Marks a model's self.query as CQL's own, whose SQL is the same on every call (the plain table query, or SoftDeletable's deleted_at IS NULL). A model that overrides self.query loses the mark, so statements built from it are rendered per call.

Defined in:

active_record/queryable.cr