Sha256: 5fbb9e1647e4632b710768cbd71e10d8dd82dc2c3e7ece1c0226d2b6dec7fbe0

Contents?: true

Size: 592 Bytes

Versions: 24

Compression:

Stored size: 592 Bytes

Contents

class FixedSchemaAdapter < SourceAdapter
  def initialize(source,credential)
    super(source,credential)
  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

24 entries across 24 versions & 1 rubygems

Version Path
rhosync-2.1.18.beta2 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.18.beta1 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.17 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.17.beta7 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.17.beta6 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.17.beta5 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.17.beta4 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.17.beta3 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.17.beta2 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.17.beta1 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.16 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.15 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.14 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.13 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.12 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.11 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.10 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.7 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.6 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb
rhosync-2.1.3 spec/apps/rhotestapp/sources/fixed_schema_adapter.rb