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-4.0.0.beta.24 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-3.4.5 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-4.0.0.beta.10 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-4.0.0.beta.12 spec/apps/rhotestapp/models/ruby/fixed_schema_adapter.rb
rhoconnect-3.4.4 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.4.3 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.4.2 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.3.6 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.3.5 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.3.4 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.3.3 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.3.2 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.3.1 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.3.1.beta4 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.3.1.beta3 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.3.1.beta2 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.2.1 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.2.0 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.2.0.beta5 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhoconnect-3.2.0.beta4 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb