Class: SqlChatbot::Grammar::ImplicitFilter

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



34
35
36
# File 'lib/sql_chatbot/grammar/registry.rb', line 34

def column
  @column
end

#exprObject

Returns the value of attribute expr

Returns:

  • (Object)

    the current value of expr



34
35
36
# File 'lib/sql_chatbot/grammar/registry.rb', line 34

def expr
  @expr
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



34
35
36
# File 'lib/sql_chatbot/grammar/registry.rb', line 34

def source
  @source
end