replicator/lib/ruby/pg-wal-plugin.rb
def create_tungsten_db(create)
    if create
      log "Ensuring that database '#{@tungsten_db}' is created"
      exec_cmd2("psql -p#{@config.getProperty("postgresql.port")} -t -c \"CREATE DATABASE #{@tungsten_db}\";", true)
    else
      log "Dropping database '#{@tungsten_db}'"
      exec_cmd2("psql -p#{@config.getProperty("postgresql.port")} -t -c \"DROP DATABASE #{@tungsten_db}\";", true)
    end
  end
# Ensures that a database for tungsten is created in PG.
# If create == true, the database is created, otherwise - dropped.
Ensures that a database for tungsten is created in PG.
If create == true, the database is created, otherwise - dropped.
Ensures that a database for tungsten is created in PG . If create == true the database is created otherwise - dropped .
def create_tungsten_db(create)
    if create
      log "Ensuring that database '#{@tungsten_db}' is created"
      exec_cmd2("psql -p#{@config.getProperty("postgresql.port")} -t -c \"CREATE DATABASE #{@tungsten_db}\";", true)
    else
      log "Dropping database '#{@tungsten_db}'"
      exec_cmd2("psql -p#{@config.getProperty("postgresql.port")} -t -c \"DROP DATABASE #{@tungsten_db}\";", true)
    end
  end
def create_tungsten_db ( create ) if create log "Ensuring that database '#{@tungsten_db}' is created" exec_cmd2 ( "psql -p#{@config.getProperty("postgresql.port")} -t -c \"CREATE DATABASE #{@tungsten_db}\";" , true ) else log "Dropping database '#{@tungsten_db}'" exec_cmd2 ( "psql -p#{@config.getProperty("postgresql.port")} -t -c \"DROP DATABASE #{@tungsten_db}\";" , true ) end end
Ensures that a database for tungsten is created in PG.
Ensures that a database for tungsten is created in PG .
create