Skip to content

[Feature] Support outputting migration to stdout #66

@GTonehour

Description

@GTonehour

Thanks for maintaining this great piece of software!

Instead of creating a file, other diff tools, like migra, sqldef... output the migration SQL as the output of the CLI command.

This is useful in scripts where you want to do something with the generated migration (display it in the terminal with bat, ask the developer to enter a name for that migration, etc).

pg-diff makes this kind of automation difficult, especially because the generated filename is known only by reading the verbose output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions