Module: PgOnlineSchemaChange

Defined in:
lib/pg_online_schema_change/replay.rb,
lib/pg_online_schema_change.rb,
lib/pg_online_schema_change/cli.rb,
lib/pg_online_schema_change/query.rb,
lib/pg_online_schema_change/store.rb,
lib/pg_online_schema_change/client.rb,
lib/pg_online_schema_change/helper.rb,
lib/pg_online_schema_change/version.rb,
lib/pg_online_schema_change/orchestrate.rb

Overview

rubocop:disable Metrics/AbcSize, Metrics/MethodLength

Defined Under Namespace

Modules: Helper Classes: AccessExclusiveLockNotAcquired, CLI, Client, CountBelowDelta, Error, Orchestrate, Query, Replay, Store

Constant Summary collapse

PULL_BATCH_COUNT =
1000
DELTA_COUNT =
20
VERSION =
"0.7.1"

Class Method Summary collapse

Class Method Details

.logger(verbose: false) ⇒ Object


21
22
23
24
25
26
27
28
# File 'lib/pg_online_schema_change.rb', line 21

def self.logger(verbose: false)
  @logger ||= begin
    logger = Ougai::Logger.new($stdout)
    logger.level = verbose ? Ougai::Logger::TRACE : Ougai::Logger::INFO
    logger.with_fields = { version: PgOnlineSchemaChange::VERSION }
    logger
  end
end