jackc / jackc/tern

Shell script migrations

Open
#47 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
1.3k
Forks
86
PR merge metrics
No merged PRs in 30d

Description

It might be interesting for tern to have migrations that are simply shell scripts that can do arbitrary tasks. tern could act as a proxy to the PostgreSQL server and expose a pseudo connection via the `PG*` or `DATABASE_URL` environment variables. Then a migration could have any logic written in any language (even just using `psql` could be really valuable).

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named in the issue. Start by reviewing tern's migration execution flow and how it connects to PostgreSQL, then determine the scope for running shell-script migrations and exposing PG* or DATABASE_URL. Done would require an agreed design, implementation, and tests for arbitrary migration commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, shell
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.