Class Heroku::Command::Pg
In: lib/heroku/command/pg.rb
Parent: BaseWithApp

manage heroku postgresql databases

Methods

Included Modules

PgUtils

Constants

KB = 1024 unless self.const_defined?(:KB)
MB = 1024 * KB unless self.const_defined?(:MB)
GB = 1024 * MB unless self.const_defined?(:GB)

Public Instance methods

pg:backups

list legacy postgres backups

DEPRECATED: see docs.heroku.com/pgbackups#legacy

-d, —db DATABASE # the config var that contains the database URL you‘d like to use

pg:info

show database status

-d, —db DATABASE # the config var that contains the database URL you‘d like to use

pg:ingress

allow direct connections to the database from this IP for one minute (dedicated only)

-d, —db DATABASE # the config var that contains the database URL you‘d like to use

pg:promote

promote a database identifier to DATABASE_URL

-d, —db DATABASE # the config var that contains the database URL you‘d like to use

pg:psql

open a psql shell to the database (dedicated only)

-d, —db DATABASE # the config var that contains the database URL you‘d like to use

pg:reset

delete all data in the specified database

-d, —db DATABASE # the config var that contains the database URL you‘d like to use

pg:wait

monitor a database currently being created, exit when complete

-d, —db DATABASE # the config var that contains the database URL you‘d like to use

Protected Instance methods

[Validate]