gen icon indicating copy to clipboard operation
gen copied to clipboard

Usage question

Open ghost opened this issue 9 years ago • 2 comments

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.

ghost avatar May 28 '16 11:05 ghost

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.

clipperhouse avatar May 28 '16 22:05 clipperhouse

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

ghost avatar May 29 '16 19:05 ghost