Sha256: ec7df391b690c31b1547e66292f0a7447819dc3c0d4e8b9fe643715d60a6f8ac

Contents?: true

Size: 1.07 KB

Versions: 17

Compression:

Stored size: 1.07 KB

Contents

require 'mobility/backends/sequel/pg_hash'

module Mobility
  module Backends
=begin

Implements the {Mobility::Backends::Jsonb} backend for Sequel models.

@see Mobility::Backends::Sequel::HashValued

=end
    class Sequel::Jsonb < Sequel::PgHash
      require 'mobility/backends/sequel/jsonb/query_methods'

      # @!group Backend Accessors
      #
      # @note Translation may be string, integer or boolean-valued since
      #   value is stored on a JSON hash.
      # @param [Symbol] locale Locale to read
      # @param [Hash] options
      # @return [String,Integer,Boolean] Value of translation
      # @!method read(locale, **options)

      # @!group Backend Accessors
      # @note Translation may be string, integer or boolean-valued since
      #   value is stored on a JSON hash.
      # @param [Symbol] locale Locale to write
      # @param [String,Integer,Boolean] value Value to write
      # @param [Hash] options
      # @return [String,Integer,Boolean] Updated value
      # @!method write(locale, value, **options)

      setup_query_methods(QueryMethods)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mobility-0.5.1 lib/mobility/backends/sequel/jsonb.rb
mobility-0.5.0 lib/mobility/backends/sequel/jsonb.rb
mobility-0.4.3 lib/mobility/backends/sequel/jsonb.rb
mobility-0.4.2 lib/mobility/backends/sequel/jsonb.rb
mobility-0.4.1 lib/mobility/backends/sequel/jsonb.rb
mobility-0.4.0 lib/mobility/backends/sequel/jsonb.rb
mobility-0.3.6 lib/mobility/backends/sequel/jsonb.rb
mobility-0.3.5 lib/mobility/backends/sequel/jsonb.rb
mobility-0.3.4 lib/mobility/backends/sequel/jsonb.rb
mobility-0.3.3 lib/mobility/backends/sequel/jsonb.rb
mobility-0.3.2 lib/mobility/backends/sequel/jsonb.rb
mobility-0.3.1 lib/mobility/backends/sequel/jsonb.rb
mobility-0.3.0 lib/mobility/backends/sequel/jsonb.rb
mobility-0.2.3 lib/mobility/backends/sequel/jsonb.rb
mobility-0.2.2 lib/mobility/backends/sequel/jsonb.rb
mobility-0.2.1 lib/mobility/backends/sequel/jsonb.rb
mobility-0.2.0 lib/mobility/backends/sequel/jsonb.rb