Skip to content

Question: Pre-/Post-Hooks? #11

@senpro-ingwersenk

Description

@senpro-ingwersenk

Hello there!

I have made a SurrealDB driver and i am looking into what migration system I could use alongside it and came across this one here. :)

The simple architecture would allow me to quite easily, without writing a dialect or something like it, write my migrations in plain SQL and possibly use some Go to help in certain cases.

I have two questions though:

  1. Where exactly is the migration state saved?
  2. Are there Pre-/Post hooks (or a similiar mechanism) that I could use to grab the database configuration, create the connection and pass that to the migrations? This would simplify things a bit and avoid running into the DRY-pattern.

Thank you very much and kind regards,
Ingwie

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