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