Class: Pcrd::Config::MigrateConfig
- Inherits:
-
Data
- Object
- Data
- Pcrd::Config::MigrateConfig
- Defined in:
- lib/pcrd/config/migrate_config.rb
Instance Attribute Summary collapse
-
#batch_size ⇒ Object
readonly
Returns the value of attribute batch_size.
-
#checkpoint_db ⇒ Object
readonly
Returns the value of attribute checkpoint_db.
-
#lag_threshold_bytes ⇒ Object
readonly
Returns the value of attribute lag_threshold_bytes.
-
#max_rows_per_second ⇒ Object
readonly
Returns the value of attribute max_rows_per_second.
-
#publication ⇒ Object
readonly
Returns the value of attribute publication.
-
#replication_slot ⇒ Object
readonly
Returns the value of attribute replication_slot.
-
#tables ⇒ Object
readonly
Returns the value of attribute tables.
Instance Method Summary collapse
-
#initialize(max_rows_per_second: nil, **rest) ⇒ MigrateConfig
constructor
max_rows_per_second is optional (nil = unthrottled).
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_size ⇒ Object (readonly)
Returns the value of attribute batch_size
5 6 7 |
# File 'lib/pcrd/config/migrate_config.rb', line 5 def batch_size @batch_size end |
#checkpoint_db ⇒ Object (readonly)
Returns the value of attribute checkpoint_db
5 6 7 |
# File 'lib/pcrd/config/migrate_config.rb', line 5 def checkpoint_db @checkpoint_db end |
#lag_threshold_bytes ⇒ Object (readonly)
Returns the value of attribute 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_second ⇒ Object (readonly)
Returns the value of attribute 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 |
#publication ⇒ Object (readonly)
Returns the value of attribute publication
5 6 7 |
# File 'lib/pcrd/config/migrate_config.rb', line 5 def publication @publication end |
#replication_slot ⇒ Object (readonly)
Returns the value of attribute replication_slot
5 6 7 |
# File 'lib/pcrd/config/migrate_config.rb', line 5 def replication_slot @replication_slot end |
#tables ⇒ Object (readonly)
Returns the value of attribute tables
5 6 7 |
# File 'lib/pcrd/config/migrate_config.rb', line 5 def tables @tables end |