Class: Superstore::Adapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/superstore/adapters/abstract_adapter.rb

Direct Known Subclasses

JsonbAdapter

Instance Method Summary collapse

Constructor Details

#initializeAbstractAdapter



4
5
# File 'lib/superstore/adapters/abstract_adapter.rb', line 4

def initialize
end

Instance Method Details

#delete(table, ids) ⇒ Object

Delete rows by an array of ids



20
21
# File 'lib/superstore/adapters/abstract_adapter.rb', line 20

def delete(table, ids) # abstract
end

#insert(table, id, attributes) ⇒ Object

Insert a new row



12
13
# File 'lib/superstore/adapters/abstract_adapter.rb', line 12

def insert(table, id, attributes) # abstract
end

#select(scope) ⇒ Object

Read records from a instance of Superstore::Scope



8
9
# File 'lib/superstore/adapters/abstract_adapter.rb', line 8

def select(scope) # abstract
end

#update(table, id, attributes) ⇒ Object

Update an existing row



16
17
# File 'lib/superstore/adapters/abstract_adapter.rb', line 16

def update(table, id, attributes) # abstract
end