rubenv / rubenv/sql-migrate

Pass parameters to migration script

Open
#113 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
3.4k
Forks
292
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am writing a migration script for postgres which has an anonymous plsql block.
I need to pass a parameter to this script let's say SYSTEM_ID. Is such functionality available currently?

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

No file, test, or entry point is named in the issue. Start by locating how the Go tool loads and executes migration scripts, then determine how PostgreSQL anonymous blocks could receive SYSTEM_ID. Done means a defined approach with coverage for parameter passing, or a documented conclusion that it is unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql, sql
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.