Class: ActiveRecord::ShardFor::DistkeyRouter

Inherits:
ConnectionRouter show all
Defined in:
lib/activerecord/shard_for/distkey_router.rb

Instance Attribute Summary

Attributes inherited from ConnectionRouter

#cluster_config

Instance Method Summary collapse

Methods inherited from ConnectionRouter

#fetch_connection_name, #initialize

Constructor Details

This class inherits a constructor from ActiveRecord::ShardFor::ConnectionRouter

Instance Method Details

#route(key) ⇒ Object

Returns key given key.

Parameters:

  • key (Object)

    sharding key

Returns:

  • (Object)

    key given key



6
7
8
# File 'lib/activerecord/shard_for/distkey_router.rb', line 6

def route(key)
  key
end