Adds with_server
support for the sharded threaded connection pool.
Public Instance methods
with_server(default_server, read_only_server=default_server)
Set a default server/shard to use inside the block for the current thread.
[show source]
# File lib/sequel/extensions/server_block.rb 132 def with_server(default_server, read_only_server=default_server) 133 set_default_server(default_server, read_only_server) 134 yield 135 ensure 136 clear_default_server 137 end