Method: Sequel::QueryBlocker#log_connection_yield
- Defined in:
- lib/sequel/extensions/query_blocker.rb
#log_connection_yield(sql, conn, args = nil) ⇒ Object
Check whether queries are blocked before executing them.
83 84 85 86 87 88 89 90 |
# File 'lib/sequel/extensions/query_blocker.rb', line 83 def log_connection_yield(sql, conn, args=nil) # All database adapters should be calling this method around # query execution (otherwise the queries would not get logged), # ensuring the blocking is checked. Any database adapter issuing # a query without calling this method is considered buggy. check_blocked_queries! super end |