Module: DbMod

Includes:
Transaction
Defined in:
lib/db_mod.rb,
lib/db_mod/create.rb,
lib/db_mod/version.rb,
lib/db_mod/statements.rb,
lib/db_mod/exceptions.rb,
lib/db_mod/transaction.rb,
lib/db_mod/exceptions/base.rb,
lib/db_mod/statements/params.rb,
lib/db_mod/statements/prepared.rb,
lib/db_mod/exceptions/connection_not_set.rb,
lib/db_mod/exceptions/already_in_transaction.rb,
lib/db_mod/exceptions/duplicate_statement_name.rb

Overview

Version information

Defined Under Namespace

Modules: Create, Exceptions, Statements, Transaction

Constant Summary collapse

VERSION =

The current version of db_mod.

'0.0.1'

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object

When a module includes DbMod, we define some class-level functions specific to the module.


18
19
20
21
# File 'lib/db_mod.rb', line 18

def self.included(mod)
  DbMod::Create.setup(mod)
  DbMod::Statements::Prepared.setup(mod)
end