Module: DBLock::Adapter
- Extended by:
- Adapter
- Included in:
- Adapter
- Defined in:
- lib/db_lock/adapter.rb,
lib/db_lock/adapter/base.rb,
lib/db_lock/adapter/mysql.rb,
lib/db_lock/adapter/postgres.rb,
lib/db_lock/adapter/sqlserver.rb
Defined Under Namespace
Classes: Base, MYSQL, Postgres, Sqlserver
Constant Summary collapse
- LockTimeout =
Class.new(Timeout::Error)
Instance Method Summary collapse
Instance Method Details
#implementation ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/db_lock/adapter.rb', line 12 def implementation case DBLock.db_handler.connection.adapter_name.downcase when 'mysql2' MYSQL.instance when 'postgresql' Postgres.instance when 'sqlserver' Sqlserver.instance else raise "#{DBLock.db_handler.connection.adapter_name} is not implemented" end end |