Skip to content

Commit

Permalink
Merge pull request #33 from OldSneerJaw/release-0.8.0
Browse files Browse the repository at this point in the history
Preparation for 0.8.0 release
  • Loading branch information
OldSneerJaw authored May 27, 2022
2 parents 977c922 + 0fc5794 commit 19420a4
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/). All notable changes will be documented in this file.

## [Unreleased](https://github.com/OldSneerJaw/borealis-pg-cli/compare/v0.7.0...HEAD)
## [0.8.0](https://github.com/OldSneerJaw/borealis-pg-cli/compare/v0.7.0...v0.8.0)
- Adds the `borealis-pg:psql` command to launch an interactive psql session through a secure tunnel directly from the CLI

## [0.7.0](https://github.com/OldSneerJaw/borealis-pg-cli/compare/v0.6.1...v0.7.0)
Expand Down
60 changes: 51 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ $ heroku plugins:install borealis-pg-cli
* [`heroku borealis-pg:extensions`](#heroku-borealis-pgextensions)
* [`heroku borealis-pg:extensions:install PG_EXTENSION`](#heroku-borealis-pgextensionsinstall-pg_extension)
* [`heroku borealis-pg:extensions:remove PG_EXTENSION`](#heroku-borealis-pgextensionsremove-pg_extension)
* [`heroku borealis-pg:psql`](#heroku-borealis-pgpsql)
* [`heroku borealis-pg:run`](#heroku-borealis-pgrun)
* [`heroku borealis-pg:tunnel`](#heroku-borealis-pgtunnel)

Expand All @@ -41,7 +42,7 @@ OPTIONS
-o, --addon=addon (required) name or ID of an add-on or one of its attachments
```

_See code: [src/commands/borealis-pg/extensions/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.7.0/src/commands/borealis-pg/extensions/index.ts)_
_See code: [src/commands/borealis-pg/extensions/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.8.0/src/commands/borealis-pg/extensions/index.ts)_

## `heroku borealis-pg:extensions:install PG_EXTENSION`

Expand Down Expand Up @@ -72,7 +73,7 @@ DESCRIPTION
https://www.borealis-data.com/pg-extensions-support.html
```

_See code: [src/commands/borealis-pg/extensions/install.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.7.0/src/commands/borealis-pg/extensions/install.ts)_
_See code: [src/commands/borealis-pg/extensions/install.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.8.0/src/commands/borealis-pg/extensions/install.ts)_

## `heroku borealis-pg:extensions:remove PG_EXTENSION`

Expand All @@ -92,7 +93,46 @@ OPTIONS
-s, --suppress-missing suppress nonzero exit code when an extension is not installed
```

_See code: [src/commands/borealis-pg/extensions/remove.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.7.0/src/commands/borealis-pg/extensions/remove.ts)_
_See code: [src/commands/borealis-pg/extensions/remove.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.8.0/src/commands/borealis-pg/extensions/remove.ts)_

## `heroku borealis-pg:psql`

runs psql with a secure tunnel to a Borealis Isolated Postgres add-on

```
USAGE
$ heroku borealis-pg:psql
OPTIONS
-a, --app=app app to which the add-on is attached
-b, --binary-path=binary-path custom path to a psql binary
-o, --addon=addon (required) name or ID of an add-on or one of its attachments
-p, --port=port [default: 5432] local port number for the secure tunnel to the add-on Postgres server
-w, --write-access allow write access to the add-on Postgres database
DESCRIPTION
This operation establishes a temporary secure tunnel to an add-on database to
provide an interactive psql session. It requires that the psql command is
installed on the local machine; generally, psql is installed along with
PostgreSQL (https://www.postgresql.org/download/).
By default, read-only user credentials are used to connect to the add-on
database; to enable read and write access, supply the --write-access option.
To override the path to the psql binary, supply the --binary-path option.
See also the borealis-pg:run command to execute a noninteractive script or the
borealis-pg:tunnel command to start a secure tunnel session that can be used
in combination with any PostgreSQL client (e.g. a graphical user interface like
pgAdmin).
EXAMPLES
$ heroku borealis-pg:psql --addon borealis-pg-hex-12345
$ heroku borealis-pg:psql --app sushi --addon DATABASE --binary-path /path/to/psql
$ heroku borealis-pg:psql --app sushi --addon DATABASE_URL --write-access
```

_See code: [src/commands/borealis-pg/psql.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.8.0/src/commands/borealis-pg/psql.ts)_

## `heroku borealis-pg:run`

Expand Down Expand Up @@ -151,16 +191,18 @@ DESCRIPTION
- PGPASSWORD
- DATABASE_URL
See also the borealis-pg:tunnel command to start a secure tunnel session with
an add-on Postgres database.
See also the borealis-pg:psql command to launch an interactive psql session or
the borealis-pg:tunnel command to start a secure tunnel session that can be
used in combination with any PostgreSQL client (e.g. a graphical user interface
like pgAdmin).
EXAMPLES
$ heroku borealis-pg:run --addon borealis-pg-hex-12345 --shell-cmd './manage.py migrate' --write-access
$ heroku borealis-pg:run --app sushi --addon DATABASE --db-cmd 'SELECT * FROM hello_greeting' --format csv
$ heroku borealis-pg:run --app sushi --addon DATABASE_URL --db-cmd-file ~/scripts/example.sql --personal-user
```

_See code: [src/commands/borealis-pg/run.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.7.0/src/commands/borealis-pg/run.ts)_
_See code: [src/commands/borealis-pg/run.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.8.0/src/commands/borealis-pg/run.ts)_

## `heroku borealis-pg:tunnel`

Expand All @@ -185,14 +227,14 @@ DESCRIPTION
access to the add-on database; to enable read and write access, supply the
--write-access option.
See also the borealis-pg:run command to execute a noninteractive script for an
add-on Postgres database.
See also the borealis-pg:run command to execute a noninteractive script or the
borealis-pg:psql command to launch an interactive psql session directly.
EXAMPLES
$ heroku borealis-pg:tunnel --addon borealis-pg-hex-12345 --write-access
$ heroku borealis-pg:tunnel --app sushi --addon DATABASE --port 54321
$ heroku borealis-pg:tunnel --app sushi --addon DATABASE_URL
```

_See code: [src/commands/borealis-pg/tunnel.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.7.0/src/commands/borealis-pg/tunnel.ts)_
_See code: [src/commands/borealis-pg/tunnel.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v0.8.0/src/commands/borealis-pg/tunnel.ts)_
<!-- commandsstop -->
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "borealis-pg-cli",
"description": "CLI for advanced interactions with Borealis Isolated Postgres add-ons",
"version": "0.7.0",
"version": "0.8.0",
"author": "Borealis Data Solutions",
"bugs": "https://github.com/OldSneerJaw/borealis-pg-cli/issues",
"dependencies": {
Expand Down

0 comments on commit 19420a4

Please sign in to comment.