Class: Pcrd::Config::MigrateConfig

Inherits:
Data
  • Object
show all
Defined in:
lib/pcrd/config/migrate_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_rows_per_second: nil, **rest) ⇒ MigrateConfig

max_rows_per_second is optional (nil = unthrottled). Defaulting it here keeps existing callers and configs without the key working.



16
17
18
# File 'lib/pcrd/config/migrate_config.rb', line 16

def initialize(max_rows_per_second: nil, **rest)
  super(max_rows_per_second: max_rows_per_second, **rest)
end

Instance Attribute Details

#batch_sizeObject (readonly)

Returns the value of attribute batch_size

Returns:

  • (Object)

    the current value of batch_size



5
6
7
# File 'lib/pcrd/config/migrate_config.rb', line 5

def batch_size
  @batch_size
end

#checkpoint_dbObject (readonly)

Returns the value of attribute checkpoint_db

Returns:

  • (Object)

    the current value of checkpoint_db



5
6
7
# File 'lib/pcrd/config/migrate_config.rb', line 5

def checkpoint_db
  @checkpoint_db
end

#lag_threshold_bytesObject (readonly)

Returns the value of attribute lag_threshold_bytes

Returns:

  • (Object)

    the current value of lag_threshold_bytes



5
6
7
# File 'lib/pcrd/config/migrate_config.rb', line 5

def lag_threshold_bytes
  @lag_threshold_bytes
end

#max_rows_per_secondObject (readonly)

Returns the value of attribute max_rows_per_second

Returns:

  • (Object)

    the current value of max_rows_per_second



5
6
7
# File 'lib/pcrd/config/migrate_config.rb', line 5

def max_rows_per_second
  @max_rows_per_second
end

#publicationObject (readonly)

Returns the value of attribute publication

Returns:

  • (Object)

    the current value of publication



5
6
7
# File 'lib/pcrd/config/migrate_config.rb', line 5

def publication
  @publication
end

#replication_slotObject (readonly)

Returns the value of attribute replication_slot

Returns:

  • (Object)

    the current value of replication_slot



5
6
7
# File 'lib/pcrd/config/migrate_config.rb', line 5

def replication_slot
  @replication_slot
end

#tablesObject (readonly)

Returns the value of attribute tables

Returns:

  • (Object)

    the current value of tables



5
6
7
# File 'lib/pcrd/config/migrate_config.rb', line 5

def tables
  @tables
end