module QuantumFields::Support::Sqlite3
Abstracts SQLite support for quantum_fields operations
Public Class Methods
field_node(field, key)
click to toggle source
Returns an Arel node in the context of given field and JSON key, which in this context constructs as “json_extract(”my_models“.”my_json_field“, '$.key')”
# File lib/quantum_fields/support/sqlite3.rb, line 10 def field_node(field, key) Arel::Nodes::NamedFunction.new('json_extract', [field, Arel::Nodes.build_quoted("$.#{key}")]) end