module Sequel::Postgres::DeferConstraintsMethods
Public Instance Methods
defer_constraints() { || ... }
click to toggle source
# File lib/sequel/extensions/pg_defer_constraints.rb, line 5 def defer_constraints transaction(savepoint: true) do run 'SET CONSTRAINTS ALL DEFERRED' result = yield run 'SET CONSTRAINTS ALL IMMEDIATE' result end end