Skip to content

Support golang library to use migration inside code  #3756

Closed
@HoangNguyen689

Description

@HoangNguyen689

What do you want to change?

go-migrate support migration by calling inside code directly.
Why doesn't sqlc support the same feature?
It is much more convenient to use migration inside code.
(We don't have to install the sqlc command at all in the Dockerfile or dev environment)
For example:

engine := sqlc.NewEngine(...)

engine.Migrate()
-> the generated code is updated inside the folder the same as using sqlc command

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions