Amalegeni-Go | |||||
Amalegeni-Go | |||||
Step by Step Concurrent SQL Download License Contact |
Amalegeni-go (or amgo in short) is a code transliterator that makes it easy to combine go code and sql statements, with as main aim to write less code. This quick example will make it clear. You write this..
.. then run amegeleni-go on it, which will turn it into valid go code, which in turn you call from your own go-code. For the above example, your code just calls the function SelectDetailMap(), and then works on the map of lists. For other use cases, where you just want to do some data-massaging, or copying data from database to database, use the gq template which generates standalone go-code. A little historyAmalegeni-go is based on the amalegeni java version, that you find here: accumulator.be/amalegeni An example applicationHave a look at Easy concurrent SQL with amalegeni-go and Go for a nice sample application of amalegeni-go, you'll be surprised how easy it is to write SQL to concurrently run on your sharded database Step by stepFollow this detailed explanation about how to use amalegeni-go. Start with Example 1 Lessons learnedSee some of the issues I encountered.. plus their solutions. Work in progress.. more to come.. | ||||
© Willem Moors, 2013 - 2020 |