Class: Departure::DSN
- Inherits:
-
Object
- Object
- Departure::DSN
- Defined in:
- lib/departure/cli_generator.rb
Overview
Represents the ‘DSN’ argument of Percona’s pt-online-schema-change See www.percona.com/doc/percona-toolkit/2.0/pt-online-schema-change.html#dsn-options
Instance Method Summary collapse
-
#initialize(database, table_name) ⇒ DSN
constructor
Constructor.
-
#to_s ⇒ Object
Returns the pt-online-schema-change DSN string.
Constructor Details
#initialize(database, table_name) ⇒ DSN
Constructor
13 14 15 16 |
# File 'lib/departure/cli_generator.rb', line 13 def initialize(database, table_name) @database = database @table_name = table_name end |
Instance Method Details
#to_s ⇒ Object
Returns the pt-online-schema-change DSN string. See www.percona.com/doc/percona-toolkit/2.0/pt-online-schema-change.html#dsn-options
20 21 22 |
# File 'lib/departure/cli_generator.rb', line 20 def to_s "D=#{database},t=#{table_name}" end |