liquid-labs / liquid-labs/liquid-dev-cloudsql
Support exit on script errors for programatic connects.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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