lib/alf/sequel/connection/connection_methods.rb in alf-sequel-0.14.0 vs lib/alf/sequel/connection/connection_methods.rb in alf-sequel-0.15.0

- old
+ new

@@ -26,14 +26,16 @@ def close @sequel_db.disconnect if @sequel_db && @sequel_db != conn_spec end + def close! + @sequel_db.disconnect if @sequel_db + end + def with_sequel_db yield(sequel_db) end - - private # Yields a Sequel::Database object def sequel_db @sequel_db ||= Adapter.sequel_db(conn_spec) block_given? ? yield(@sequel_db) : @sequel_db