-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-bindata support #6
Comments
Have you looked at Migrator.AppendMigration? With that you wouldn't need go-bindata or to modify tern/migrate to have your migration data embedded in your program. I'm not totally opposed to making the file system loader more abstract, but I think what you want can be done without it. |
We are working on a multi-tenant meta-schema based access layer / incremental event processing engine for very specific use-cases -- the business logic is runtime installable into postgres (plv8). There is a thin layer of DDL / stored procedures and JS framework that needs to be installed into the database. I say thin, but I suspect there will be quite a bit of it ! The JS framework will be written by a colleague who will be comping online shortly, I don't yet know what approach he has in mind for packaging the JS. I have given it some thought and it might make more sense for us to generate go files with |
I am almost done with getting go-bindata working -- what do you think of this (this depends on the refactoring I did in my PR) ? I can commit this into the PR tomorrow. Gonna hit the sack now !
|
I'm still mostly of the opinion that A quick look at |
I think I could use append migration as things stand now. However, I am storing the migrations in the bindata according to the naming conventions of tern, and I have put in the above / below string. Plus It would be nice to be able to rely on the template support if needed. I did pursue the implementation you suggested at first since I didn't understand exactly what the two methods were doing. I'll give creating the filesystem abstraction a whirl. |
Hmm How about ?
Turns out it's literally a copy paste -- I love the interfaces in go. |
My colleague has come online and we have decided on bundling the JS framework as a single plv8_init function. So my needs are currently met by |
If anyone is wondering how to integrate tern and vfsgen: The main part being:
|
I am embedding migrations into the product I am working on. I could do with a go-bindata support in the
Migrator
. go-bindata generated files have no dependencies -- which fits with pgx / tern.The text was updated successfully, but these errors were encountered: