Hi Paraiso, I just did some research about database access and found this reddit link https://www.reddit.com/r/golang/comments/2t52u7/how_do_you_write_functions_that_access_database/
I thought, there might be some well known pattern to access database and widely popular in go community. Anyway, thanks for the Martin Fowler link. Warm Regards, Asit Dhal http://bit.ly/193ASIT On 8/19/2016 7:06:06 PM, paraiso.m...@gmail.com <paraiso.m...@gmail.com> wrote: I find your question strange because, unless you have a specific architectural problem , which you don't, AFAIK, you shouldn't try to force patterns in your code. Write code that is testable then refactor if needed. Don't try to force a specific pattern just because "patterns". Now if you are looking for patterns for the sake of patterns Microsoft has extensive documentation of enterprise patterns : https://msdn.microsoft.com/en-us/library/ff648419.aspx as well as Martin Fowler : http://martinfowler.com/eaaCatalog/index.html Something that would be useful for everybody next time is you actually coming with a piece of code that works then asking for ways to refactor that piece of code. Le vendredi 19 août 2016 16:08:04 UTC+2, Asit Dhal a écrit : Hi All, I need to build an application that accesses a small database(sqlite or may be mysql in production). My database operations are very small, like 1. Insert 2. Read 3. Search Insert is one time, and most of the time new records will be added in a batch. Can someone suggest me some application design pattern(a tutorial or github repo) for small database access ? Warm Regards, Asit Dhal http://bit.ly/193ASIT [http://bit.ly/193ASIT] -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com [mailto:golang-nuts+unsubscr...@googlegroups.com]. For more options, visit https://groups.google.com/d/optout [https://groups.google.com/d/optout]. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.