Class: DB::Dbhandler

Inherits:
Object
  • Object
show all
Includes:
AbstractInterface
Defined in:
lib/db/dbhandler.rb

Direct Known Subclasses

Classifier, Mongohandler

Instance Method Summary collapse

Methods included from AbstractInterface

included

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