Learn how to connect to a SQL Database in Go. Execute queries and map data from the database into structs/slices. Also taking a look at the sqlx package to make life easier.

Posts Table Schema:

create table posts
(
    id         bigint unsigned auto_increment primary key,
    title      varchar(255)                          not null,
    content    text                                  not null,
    created_at timestamp default current_timestamp() not null
);

#golang #database #sql #developer #go

Golang SQL Beginner Tutorial + SQLX
10.90 GEEK