Sha256: e23255b907b91de95e6934e166d573417f4eab9d39aeea62378700375c5bc3c7

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

require 'mobility/backend/sequel/hash_valued'

module Mobility
  module Backend
=begin

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

@see Mobility::Backend::Sequel::HashValued

=end
    class Sequel::Jsonb < Sequel::HashValued
      require 'mobility/backend/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

8 entries across 8 versions & 1 rubygems

Version Path
mobility-0.1.20 lib/mobility/backend/sequel/jsonb.rb
mobility-0.1.19 lib/mobility/backend/sequel/jsonb.rb
mobility-0.1.18 lib/mobility/backend/sequel/jsonb.rb
mobility-0.1.17 lib/mobility/backend/sequel/jsonb.rb
mobility-0.1.16 lib/mobility/backend/sequel/jsonb.rb
mobility-0.1.15 lib/mobility/backend/sequel/jsonb.rb
mobility-0.1.14 lib/mobility/backend/sequel/jsonb.rb
mobility-0.1.13 lib/mobility/backend/sequel/jsonb.rb