March 2019
Beginner to intermediate
324 pages
7h 17m
English
To design the code that interacts with our database, we will utilize an approach known as ORM . ORMs allow you to interact with databases using object-oriented paradigms. ORMs generate code that represent database tables as code objects, and represents queries as methods in your favorite programming language.
In the case of the Go language, we will need to create Go structs to represent each of our tables. We already started writing our models in the previous chapter, that is, product, customer, and order.
Before we continue to write the code, let's first discuss the Go object-relational mapping (GORM), which is the Go open source package, that offers support for ORMs.
Read now
Unlock full access