Method: Sequel::ServerLogging#connect

Defined in:
lib/sequel/extensions/server_logging.rb

#connect(server) ⇒ Object

When setting up a new connection, associate the connection with the shard.



39
40
41
42
43
# File 'lib/sequel/extensions/server_logging.rb', line 39

def connect(server)
  conn = super
  Sequel.synchronize{@server_connection_map[conn] = server}
  conn
end