https://github.com/clinton-mwachia/go-sqlite-mastery
Master Golang and sqlite to develop practical applications.
https://github.com/clinton-mwachia/go-sqlite-mastery
database go golang sqlite-database sqlite3
Last synced: 3 months ago
JSON representation
Master Golang and sqlite to develop practical applications.
- Host: GitHub
- URL: https://github.com/clinton-mwachia/go-sqlite-mastery
- Owner: clinton-mwachia
- License: mit
- Created: 2025-11-06T08:13:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2026-02-02T07:34:00.000Z (5 months ago)
- Last Synced: 2026-02-02T19:58:57.085Z (5 months ago)
- Topics: database, go, golang, sqlite-database, sqlite3
- Language: Go
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go + SQLite Mastery
The goal of this repository is to teach you how to use **Go** with **SQLite** to build practical applications.
---
## **Code Structure**
1. **Connect to SQLite**
2. **Creating Tables**
3. **Insert data into a Table**
4. **Insert multiple rows into a Table**
5. **Select All from a Table**
6. **Select by Id from a Table**
7. **Update Data by Id from a Table**
8. **Delete Data by Id from a Table**
9. **Delete many rows from a Table**
10. **Import csv data into the Table**
11. **Order results By**
12. **Limit Results**
13. **Where Operator**
14. **Between Operator**
15. **And Operator**
16. **In Operator**
17. **Or Operator**
18. **Like Operator**
19. **IS NULL Operator**
20. **Glob Operator**
21. **Distinct Operator**
22. **Average Function**
23. **Count Function**
24. **Max Function**
25. **Min Function**
26. **Total Function**
---
## **Getting Started**
### **1. Clone the Repository**
```bash
git clone https://github.com/clinton-mwachia/go-sqlite-mastery.git
cd go-sqlite-mastery
```
### **2. Install Dependencies**
```bash
go mod tidy
```
### **3. Run Example Code**
Each folder contains a `main.go` or multiple Go files. Navigate to the folder and run:
```bash
go run main.go
```
---
## **Folder Structure**
```
go-sqlite-mastery/
│
├─ 01-connect-to-sqlite/
├─ 02-creating-tables/
├─ 03-inserting-row/
├─ ...
├─ ...
├─ ...
├─ ...
└─ ...
.gitignore
LICENSE
README.md
```
---
## **Resources**
- [SQLite Tutorial for Go](https://www.sqlitetutorial.net/sqlite-go/)
- [Go `database/sql` package](https://pkg.go.dev/database/sql)
- [SQLite Documentation](https://www.sqlite.org/docs.html)
---
## **License**
This repository is licensed under the **MIT License**. See [LICENSE](LICENSE) for details.
---
## **Support Me**
Don’t forget to:
- Star this repository ⭐
- Share with your friends learning Go