Module: GlobalUid

Defined in:
lib/global_uid/server_variables.rb,
lib/global_uid.rb,
lib/global_uid/base.rb,
lib/global_uid/migration_extension.rb,
lib/global_uid/active_record_extension.rb,
lib/global_uid/schema_dumper_extension.rb

Overview

This module is good for testing and development, not so much for production. Please note that this is unreliable – if you lose your CX to the server and auto-reconnect, you will be utterly hosed. Much better to dedicate a server or two to the cause, and set their auto_increment_increment globally.

You can include this module in tests like this:

GlobalUid::Base.extend(GlobalUid::ServerVariables)

Defined Under Namespace

Modules: ActiveRecordExtension, MigrationExtension, SchemaDumperExtension, ServerVariables Classes: Base, ConnectionTimeoutException, NoServersAvailableException, TimeoutException

Constant Summary collapse

VERSION =
"1.4.1"