lib/sequel/extensions/arbitrary_servers.rb in sequel-4.13.0 vs lib/sequel/extensions/arbitrary_servers.rb in sequel-4.14.0
- old
+ new
@@ -31,12 +31,12 @@
# extension:
#
# DB.with_server(:host=>'...', :database=>'...') do
# DB.synchronize do
# # All of these use the host/database given to with_server
-# DB[:table].insert(...)
-# DB[:table].update(...)
+# DB[:table].insert(:c=>1)
+# DB[:table].update(:c=>2)
# DB.tables
# DB[:table].all
# end
# end
#
@@ -51,9 +51,10 @@
# Note that this extension only works with the sharded threaded connection
# pool. If you are using the sharded single connection pool, you need
# to switch to the sharded threaded connection pool before using this
# extension.
+#
module Sequel
module ArbitraryServers
private
# If server is a hash, create a new connection for