Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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