Module: BomDB

Extended by:
BomDB
Included in:
BomDB
Defined in:
lib/bomdb.rb,
lib/bomdb/query.rb,
lib/bomdb/range.rb,
lib/bomdb/config.rb,
lib/bomdb/schema.rb,
lib/bomdb/version.rb,
lib/bomdb/diff/dwdiff.rb,
lib/bomdb/export/base.rb,
lib/bomdb/import/base.rb,
lib/bomdb/import/refs.rb,
lib/bomdb/diff/aligner.rb,
lib/bomdb/export/books.rb,
lib/bomdb/import/books.rb,
lib/bomdb/models/verse.rb,
lib/bomdb/export/result.rb,
lib/bomdb/export/verses.rb,
lib/bomdb/import/result.rb,
lib/bomdb/import/verses.rb,
lib/bomdb/models/edition.rb,
lib/bomdb/cli/application.rb,
lib/bomdb/export/contents.rb,
lib/bomdb/export/editions.rb,
lib/bomdb/import/contents.rb,
lib/bomdb/import/editions.rb

Defined Under Namespace

Modules: Cli, Diff, Export, Import, Models Classes: Config, Query, Range, Schema

Constant Summary collapse

VERSION =
"1.0.0"

Instance Method Summary collapse

Instance Method Details

#configObject



14
15
16
# File 'lib/bomdb.rb', line 14

def config
  @config ||= BomDB::Config.new
end

#db(dbfile = config.db_path) ⇒ Object



10
11
12
# File 'lib/bomdb.rb', line 10

def db(dbfile = config.db_path)
  Sequel.sqlite(dbfile)
end