Class: Bmg::Database
- Inherits:
-
Object
show all
- Defined in:
- lib/bmg/database.rb,
lib/bmg/database/xlsx.rb,
lib/bmg/database/sequel.rb,
lib/bmg/database/data_folder.rb
Defined Under Namespace
Classes: DataFolder, Sequel, Xlsx
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.data_folder(*args) ⇒ Object
4
5
6
7
|
# File 'lib/bmg/database.rb', line 4
def self.data_folder(*args)
require_relative 'database/data_folder'
DataFolder.new(*args)
end
|
.sequel(*args) ⇒ Object
9
10
11
12
13
|
# File 'lib/bmg/database.rb', line 9
def self.sequel(*args)
require 'bmg/sequel'
require_relative 'database/sequel'
Sequel.new(*args)
end
|
.xlsx(*args) ⇒ Object
15
16
17
18
19
|
# File 'lib/bmg/database.rb', line 15
def self.xlsx(*args)
require 'bmg/xlsx'
require_relative 'database/xlsx'
Xlsx.new(*args)
end
|
Instance Method Details
#each_relation_pair ⇒ Object
30
31
32
|
# File 'lib/bmg/database.rb', line 30
def each_relation_pair
raise NotImplementedError
end
|
#to_data_folder(*args) ⇒ Object
26
27
28
|
# File 'lib/bmg/database.rb', line 26
def to_data_folder(*args)
DataFolder.dump(self, *args)
end
|
#to_xlsx(*args) ⇒ Object
21
22
23
24
|
# File 'lib/bmg/database.rb', line 21
def to_xlsx(*args)
require 'bmg/xlsx'
Writer::Xlsx.to_xlsx(self, *args)
end
|