Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Use GORM to Interact With Your SQL Databases in Golang

Donald Feury via YouTube

Overview

Learn how to use GORM, a Code-First ORM for Golang, to interact with SQL databases without writing raw SQL. Discover techniques for defining database schemas using Go structs, performing migrations, seeding data, and executing various database operations. Explore methods for connecting to databases, enabling verbose logging, retrieving data with complex queries, and handling errors effectively. Master the art of leveraging GORM's powerful features to streamline database interactions in your Golang projects.

Syllabus

- Overview
- Using structs to define tables
- Migrations
- Seeding the database
- Find first result
- Connect to database
- Verbose logging
- Get all users
- Get all messages made by user
- Review generated queries
- Error handling
- Review

Taught by

Donald Feury

Reviews

Start your review of How to Use GORM to Interact With Your SQL Databases in Golang

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.