Sha256: ef7231c86890223303cc9665f785575de0aaac959957bd5aabaef6057432f6d6

Contents?: true

Size: 570 Bytes

Versions: 58

Compression:

Stored size: 570 Bytes

Contents

class FixedSchemaAdapter < SourceAdapter
  def initialize(source)
    super(source)
  end
  
  def query(params=nil)
    @result = Store.get_data('test_db_storage')
  end
  
  def schema
    {
      'version' => '1.0',
      'property' => {
        'name' => 'string',
        'brand' => 'string',
        'price' => 'string',
        'image_url_cropped' => 'blob,overwrite',
        'image_url' => 'blob'
      },
      'index' => {
        'by_name_brand' => 'name,brand'
      },
      'unique_index' => {
        'by_price' => 'price'
      }
    }.to_json
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-7.5.1 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-7.4.1 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-7.1.17 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-6.2.0 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-6.0.11 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-5.5.18 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-5.5.17 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-5.5.15 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-5.5.0.22 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-5.5.2 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-5.5.0.7 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-5.5.0.3 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-5.5.0 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-5.1.1 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-4.0.4 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-4.0.3 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-4.0.2 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-4.0.1 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-4.0.0 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb