Methods

Class/Module Index [+]

Quicksearch

Sequel::UnthreadedServerBlock

Adds with_server support for the sharded single connection pool.

Public Instance Methods

with_server(server) click to toggle source

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

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.