go-sqlite-demo

command module
v0.0.0-...-143517b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

Project to demo SQLite + Go

Build and Test

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.

Why SQLite?

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.

Why modernc.org/sqlite?

It's CGO free which means, we don't have to worry about installation woes (potential) on different operating systems and architecture

Brief explanations of the code

See this blog post.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL