Skip to content
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

Usage question #100

Open
ghost opened this issue May 28, 2016 · 2 comments
Open

Usage question #100

ghost opened this issue May 28, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented May 28, 2016

Hey Matt,

https://clipperhouse.github.io is perfect for a kV store like boltdb.
The time consuming messy aspects of a kV store is when you need to do lots of transformations on top with an open cursor often.

With gen, it's possible to take your model types and then gen the operations you need to do on the data.

I am NIT suggesting a DSL. Just gen as you need to.

I am looking for advice....

Have you even thought of this ?

Have you even combined gen with go generate ?
There is some merit here.

@clipperhouse
Copy link
Owner

clipperhouse commented May 28, 2016

Not quite sure I follow (I haven't used BoltDB) but perhaps you are describing something analogous to an ORM? I think it would work for that. gen is about writing things that might be considered boilerplate, where the primary variation is by type.

gen is a nice companion to go generate. Just do something like //go:generate gen, so that gen fits into tooling idiomatically.

@ghost
Copy link
Author

ghost commented May 29, 2016

Thanks for the tip. I am exploring options and have foudn a few more things that help.

There is an ORM for BoltDB now. Its called Storm. https://github.com/asdine/storm

There is also a great code gen here called Goa. https://github.com/goadesign/goa.
It also generates the data layer using Gorm, and is very nice.
Its very complete and has its own DSL etc. I am very impressed with it.

Now i am exploring how to generate the web client stuff.
Angular 2 and ionic2 is my choice, as angular also now can do react native.
For this, i am using angular cli.
https://github.com/angular/angular-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant