-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
74 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
# WORK IN PROGRESS - go-sqlite-demo | ||
# Project to demo SQLite + Go | ||
|
||
A demo project to demo SQLite + Go | ||
This repository contains an illustration of how to interact with a SQLite | ||
database using `database/sql` and `https://pkg.go.dev/modernc.org/sqlite`. | ||
|
||
- database/sql | ||
- https://pkg.go.dev/modernc.org/sqlite | ||
The example is intentionally chosen to match that of the official Go Project | ||
tutorial, [Accessing a relational database](https://go.dev/doc/tutorial/database-access) | ||
which uses MySQL as the database server. | ||
|
||
## Why SQLite? | ||
|
||
https://go.dev/doc/tutorial/database-access | ||
SQLite is perfect for [many use cases](https://www.sqlite.org/whentouse.html). | ||
|
||
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 | ||
|
||
## Explanations of the code | ||
|
||
See [this blog post](TBD). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters