Add comment to database()

This commit is contained in:
2025-10-16 09:22:18 +02:00
parent 20c8981268
commit 5348777ed4
2 changed files with 4 additions and 2 deletions

View File

@@ -8,6 +8,10 @@ import (
_ "modernc.org/sqlite"
)
// database
//
// Manage database connection to ./app.db
// Handles CRUD
func database() *sql.DB {
db, err := sql.Open("sqlite", "./app.db")
if err != nil {