This repository contains an illustration of how to interact with a SQLite
database using database/sql
and https://pkg.go.dev/modernc.org/sqlite
.
The example is intentionally chosen to losely match that of the official Go Project tutorial, Accessing a relational database which uses MySQL as the database server.
SQLite is perfect for many use cases.
My choice of using SQLite for this demo is that it is perfect to illustrate how we can persist data to a SQL database from Go.
It's CGO free which means, we don't have to worry about installation woes (potential) on different operating systems and architecture
See this blog post.