Class: DB::Dbhandler
- Inherits:
-
Object
- Object
- DB::Dbhandler
- Includes:
- AbstractInterface
- Defined in:
- lib/db/dbhandler.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#bulk_insert(*args) ⇒ Object
Abstract method.
-
#connect(*args) ⇒ Object
Abstract method.
-
#insert(*args) ⇒ Object
Abstract method.
Methods included from AbstractInterface
Instance Method Details
#bulk_insert(*args) ⇒ Object
Abstract method
Insert many data at once.
Attributes
-
data
Array of Hashes
36 37 38 |
# File 'lib/db/dbhandler.rb', line 36 def bulk_insert(*args) Dbhandler.api_not_implemented(self) end |
#connect(*args) ⇒ Object
Abstract method
Connecting to database with given:
Attributes
-
args
optional: host, port, database name
14 15 16 |
# File 'lib/db/dbhandler.rb', line 14 def connect(*args) Dbhandler.api_not_implemented(self) end |
#insert(*args) ⇒ Object
Abstract method
Insert data:
Attributes
-
data
Hash or Array
25 26 27 |
# File 'lib/db/dbhandler.rb', line 25 def insert(*args) Dbhandler.api_not_implemented(self) end |