Skip to content

[enhancement] LoadMigrations with a given path #128

@emicklei

Description

@emicklei

I am trying to use the package as a library.

For that, I created embedded FS and wanted to use LoadMigrations.

However, in github.com/jackc/tern/v2 v2.3.2 that function expects to find migrations in the current "." folder whereas my FS requires a path.

//go:embed services/content/db/migrations/*.sql
var content embed.FS

Would you consider adding another Load function that takes a path parameter?

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