Database API and drivers
A database is a place where data is stored; we normally use database engines, which are software applications that allow us to create and interact with databases. A lot of different database engines exist, and they give us different ways of structuring the data. Nowadays, many different kinds of databases exist, but the most used and solid are the ones called SQL databases. SQL is a standard that stands for Structured Query Language. This is a standardized language that specifies how a database engine should respond to specific commands from the user. As its name suggests, it’s a language that allows us to perform queries on a database engine – that is, ask it to perform those actions.
To work with databases, there is something called the pure Go approach, which means Go has an API that allows you to use different drivers to connect to databases. The API comes from the database/sql
package, and the drivers can be of two types. There is native...