Course
Skills Expanded
GORM: An Object Relational Mapper for Go
This course provides an in-depth examination of GORM and how to use it to provide an interface between a Go application and a relational database.
What you'll learn
Go is a language based on simplicity and speed. However, the complexity of an application can rise substantially when it has to interact with a database. GORM is a library that provides object-relational mapping capabilities to eliminate much of this complexity. This course will introduce you to GORM and help you learn about how to integrate it into your next data-driven application.
Table of contents
Course Overview
1min
Introduction
32mins
- Introduction 2m
- Intended Audience 3m
- Why Use an ORM? 2m
- Overview of GORM’s Features 5m
- Where to Find Documentation for GORM 2m
- Introduction to Demo Scenario 2m
- Establishing a Database Connection 5m
- Creating Tables 2m
- Creating Records 2m
- Querying for Records 2m
- Updating Records 3m
- Deleting Records 1m
- Summary 2m
Defining Schemas
35mins
- Introduction 2m
- Defining Entities 2m
- Scoping 2m
- Defining Tables 4m
- Basic Entity Creation 2m
- Customizing Field Types and Sizes 2m
- Auto-incrementing Field 2m
- Transient Fields 2m
- Unique Fields 2m
- Preventing Nulls and Providing Default Values 3m
- Primary Key Fields 2m
- Controlling Column Names 2m
- Embedding Child Objects 4m
- Working with Indexes 3m
- Summary 2m
Working with Relationships
34mins
- Introduction 1m
- One-to-One Relationships 2m
- Demo: One-to-One Relationships 9m
- Foreign Key Constraints 3m
- One-to-Many Relationships 1m
- Demo: One-to-Many Relationships 3m
- Many-to-Many Relationships 1m
- Demo: Many-to-Many Relationships 4m
- Polymorphism 3m
- Demo: Polymorphism 3m
- Association API 2m
- Summary 2m
Creating, Updating, and Deleting Records
33mins
Querying the Database
62mins
- Introduction 2m
- Retrieving Single Records 8m
- Retrieving Record Sets 6m
- Where Clauses 11m
- Preloading Child Objects 5m
- Limits, Offsets, and Ordering Results 4m
- Selecting Data Subsets 8m
- Using Attrs and Assign to Provide Default Values 4m
- Creating Projections with Joins 4m
- Working with Raw Result Rows 3m
- Creating Aggregations with Group and Having 4m
- Using Raw SQL 2m
- Summary 2m
Modifying Schemas
23mins
Advanced Topics
22mins