go-fast-sql
go-fast-sql copied to clipboard
Go library to increase SQL performance and ease development
Fixes the markdown header by adding a space between `##` and `Example Usage`
When the database close, ```FlushAll``` will be called, causing the following to be ran: ``` for _, in := range d.batchInserts { if err := d.flushInsert(in); err != nil {...
Speed up Updates by batching them as explained at http://stackoverflow.com/questions/1006969/why-are-batch-inserts-updates-faster-how-do-batch-updates-work ``` sql UPDATE mytable SET mytext = myvalues.mytext, myint = myvalues.myint FROM ( VALUES (1, 'textA', 99), (2, 'textB', 88),...
Ideally a user should be able to drop queries, probably of a specified struct type, into a channel and allow the go-fast-sql library to handle flushing behind the scenes.