Method: Arrival::CliGenerator#parse_statement
- Defined in:
- lib/arrival/cli_generator.rb
#parse_statement(statement) ⇒ String
Generates the percona command for a raw MySQL statement. Fills all the connection credentials from the current AR connection, but that can amended via ENV-vars: PERCONA_DB_HOST, PERCONA_DB_USER, PERCONA_DB_PASSWORD, PERCONA_DB_NAME Table name can’t not be amended, it populates automatically from the migration data
65 66 67 68 69 70 |
# File 'lib/arrival/cli_generator.rb', line 65 def parse_statement(statement) alter_argument = AlterArgument.new(statement) # dsn = DSN.new(connection_details.database, alter_argument.table_name) "#{command} #{all_options} #{alter_argument} #{Option.new("table", alter_argument.table_name)}" end |