Class: Caco::Postgres::Sql
- Inherits:
-
Trailblazer::Operation
- Object
- Trailblazer::Operation
- Caco::Postgres::Sql
- Defined in:
- lib/caco/postgres/sql.rb
Instance Method Summary collapse
Instance Method Details
#build_command(ctx, sql:) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/caco/postgres/sql.rb', line 9 def build_command(ctx, sql:, **) ctx[:sql_command] = "su -l -c \"psql -e -U postgres -d postgres <<EOF #{sql} EOF \" postgres" # ctx[:sql_command] = "psql -U fernandes -d postgres -c \"#{sql}\"" end |