Closed mortenson closed 1 year ago
Appreciate the feedback π ! It's super cool to see other folks wrapping the library for their own purposes !
For now, I'm hesitant to export those functions and expose more API surface than I have to, especially because the library is in its early stages.
In terms of the other issue you're running into I think there's two courses of actions we should take (albeit I can't guarantee a timeline):
In terms of feature priority, I think adding support for sequences is more important in the short term to unblock folks. Having ignore support I think is more of a nice-to-have. Let me know what you think!
cc @alexaub-stripe if you have any thoughts here
While I don't control the schema goose auto-magically applies when running migrations for the first time, I think it's pretty stable and having it included in my schema (thus not included in pg-schema-diff output, pending sequence support) wouldn't be the end of the world.
Definitely focus on features that have the most impact, I'm really excited to see where this library goes!
Feel free to close this issue given that there isn't plans to expose these helper methods, pending more feedback from your teammate. Thanks!
Sweet, sounds like a plan! Good to hear you'll be mostly unblocked come serial support.
π Hi there, really cool project! I just started to build a new web app using
sqlc
, and tried out generating migrations automatically using this repo: https://gist.github.com/mortenson/c3c1e7f2a1b10c5c3674f8c91123c3e0The only internal code I copied was
getDDLFromPath
andopenDbWithPgxConfig
, so I was wondering if those could be made public, or alternatively (which is why I'm not opening a PR yet), if from looking at my implementation you could come up with a higher level "generate plan" function that takes in similar arguments to theplan
command.Also in my implementation you can see that I'm ignoring some Goose tables, I don't think this needs to be a first-class feature of this library but maybe there's some sort of configurable ignoring that could be done. When I run
plan
normally I get this error: