The Ultimate Guide To Building Database Driven Apps With Go

The_Ultimate_Guide_To_Building_Database-Driven_Apps_with_Go

The_Ultimate_Guide_To_Building_Database-Driven_Apps_with_Go

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 44

Scroll down to view the document on your mobile browser.
January 5, 2015The Ultimate Guide To Building Database - Driven Apps with Go
Page 2Copyright © 2015 VividCortex Inc.                 www.vividcortex.com   |   info@vividcortex.comTable of Contents ● Introduction            3 ● What is database/sql?           4 ● Your First database/sql Program         6 ● Using a sql.DB            8 ● Fetching Result Sets           12 ● Modifying Data With db.Exec()         21 ● Using Prepared Statements          23 ● Working With Transactions              30 ● Error Handling            34 ● Using Built-In Interfaces          36 ● Database Drivers           40 ● Common Pitfalls            41 ● Conclusion            43AbstractThe database/sql package is Go’s lightweight standard interface for relational databases, with support for backend drivers, prepared statements and transactions. Although it is not complicated, it is dierent from database interfaces in other languages, and learning to use it properly takes time. This eBook contains years of collected wisdom from experts and is the fastest way to learn how to connect to a database from Go programs. After reading this book, you’ll know how to use database/sql properly, avoiding many mistakes and ensuring high performance and correct code.

Navigation menu