lib/mimi/db/lock.rb in mimi-db-0.2.7 vs lib/mimi/db/lock.rb in mimi-db-0.3.0
- old
+ new
@@ -47,9 +47,13 @@
rescue NotAvailable
nil
end
def lock!(name, opts = {}, &block)
+ raise 'Not implemented'
+
+ # FIXME: migrate Mimi::DB::Lock to Sequel
+
opts = Mimi::DB::Lock.module_options[:default_lock_options].merge(opts.dup)
adapter_name = ActiveRecord::Base.connection.adapter_name.downcase.to_sym
case adapter_name
when :postgresql, :empostgresql, :postgis
Mimi::DB::Lock::PostgresqlLock.new(name, opts).execute(&block)