rubenv / rubenv/sql-migrate

How do I create logs from the db?

Open
#197 0 comments 0 reactions 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

I am working in a project where there is a Docker container with the command: sql-migrate up -config/init.yml.

I would like to enable logs, but I can't change this command to postgres -c log_statement=all.

Is this possible to do with sql-migrate? If not, what would I need to hack/extend in order to make this possible?

Or how is it internally being done? I tried finding it, but I couldn't connect the dots.

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 tracing the sql-migrate up -config/init.yml command and comparing its behavior with PostgreSQL's postgres -c log_statement=all. Determine whether logging is already exposed by sql-migrate or whether the command would need an extension point. Done means identifying the supported configuration or clearly documenting the required change.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgres
Domain
cli, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.