June 2017
Intermediate to advanced
400 pages
10h 32m
English
This recipe works in a very similar way to the previous one, but demonstrates both using transactions and makes generic database functions that work with both sql.DB connections and sql.Transaction objects. It's also simple to mock these interfaces, as you'll see in Chapter 8, Testing.
Read now
Unlock full access