Methods

Class/Module Index [+]

Quicksearch

Sequel::ThreadedServerBlock

Adds with_server support for the sharded threaded connection pool.

Public Instance Methods

with_server(server) click to toggle source

Set a default server/shard to use inside the block for the current thread.

# File lib/sequel/extensions/server_block.rb, line 98
def with_server(server)
  begin
    set_default_server(server)
    yield
  ensure
    clear_default_server
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.