oopsie/data/database.go
Lewis Dale 49d33b2366
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m31s
Day 9 content, connecting to database
2024-05-08 09:00:58 +01:00

9 lines
122 B
Go

package data
import "database/sql"
func Connect(file string) *sql.DB {
db, _ := sql.Open("sqlite3", file)
return db
}