Sha256: ecb39d86a3011cbc1df12a9524273783516199237a1298ded951378308e12ff8

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

module SearchCop
  module Visitors
    module Sqlite
      # rubocop:disable Naming/MethodName

      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

      # rubocop:enable Naming/MethodName
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
search_cop-1.4.0 lib/search_cop/visitors/sqlite.rb
search_cop-1.3.0 lib/search_cop/visitors/sqlite.rb