liquid-labs / liquid-labs/liquid-dev-cloudsql

Support exit on script errors for programatic connects.

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When connecting to, for example, load the schema, we want the process to exit on errors. This can be done with:

`psql -v ON_ERROR_STOP=1`

On the other hand, when connecting for a user shell, we don't want that. So, the script should support a `--exit-on-err` flag, which would add the session variable as above.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the shell script that establishes the psql connection and inspect how its arguments are passed to the session. Add the requested --exit-on-err behavior without changing the default user-shell behavior, then verify both connection modes and error handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, shell
Domain
cli, cloud
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.