Introduction

Whenever we want to persist data we always look forward to saving it in databases, which are mainly divided into two categories—SQL and NoSQL. There are a number of databases under each category that can be used depending on the business use case because each one has different characteristics and serves a different purpose.

In this chapter, we will integrate a Go web application with the most famous open source databases—MySQL and MongoDB and learn to perform CRUD operations on them. As we will use MySQL and MongoDB, I assume both of the databases are installed and running on your local machine.

Get Go Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.