Class: SqlChatbot::Grammar::ImplicitFilter
- Inherits:
-
Struct
- Object
- Struct
- SqlChatbot::Grammar::ImplicitFilter
- Defined in:
- lib/sql_chatbot/grammar/registry.rb
Overview
WHERE clauses appended to every SELECT for an entity. Two sources feed this list:
- Schema detection: e.g. `deleted_at` → `{ column: "deleted_at", expr: "IS NULL", source: :soft_delete }`
- Developer config (`default_filters`): e.g. MSP convention `*.status != 3`.
The compiler emits each entry as ‘“<table>”.“<column>” <expr>` and skips any entry whose column is already referenced in the generated SQL.
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#expr ⇒ Object
Returns the value of attribute expr.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
34 35 36 |
# File 'lib/sql_chatbot/grammar/registry.rb', line 34 def column @column end |
#expr ⇒ Object
Returns the value of attribute expr
34 35 36 |
# File 'lib/sql_chatbot/grammar/registry.rb', line 34 def expr @expr end |
#source ⇒ Object
Returns the value of attribute source
34 35 36 |
# File 'lib/sql_chatbot/grammar/registry.rb', line 34 def source @source end |