Module: SearchCop::Visitors::Sqlite

Defined in:
lib/search_cop/visitors/sqlite.rb

Instance Method Summary collapse

Instance Method Details

#visit_SearchCopGrammar_Attributes_Json(attribute) ⇒ Object

rubocop:disable Naming/MethodName



6
7
8
# File 'lib/search_cop/visitors/sqlite.rb', line 6

def visit_SearchCopGrammar_Attributes_Json(attribute)
  "json_extract(#{quote_table_name attribute.table_alias}.#{quote_column_name attribute.column_name}, #{quote "$.#{attribute.field_names.join(".")}"})"
end