forgot to remove db. Now added a .gitignore rule
This commit is contained in:
AustrianToast 2024-05-17 01:03:02 +02:00
parent 553fa63c89
commit 35312f3c22
No known key found for this signature in database
GPG Key ID: 5CD422268E489EB4
4 changed files with 5 additions and 3 deletions

3
.gitignore vendored
View File

@ -21,3 +21,6 @@
# Go workspace file
go.work
# ---> Custom
*.db

2
go.mod
View File

@ -22,7 +22,7 @@ require (
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-sqlite3 v1.14.22 // indirect
github.com/mattn/go-sqlite3 v1.14.22
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect

View File

@ -31,6 +31,7 @@ func main() {
return
}
defer db.Close()
defer os.Remove("./videos.db")
rows, err := db.Query("select * from videos")
if err != nil {
@ -51,8 +52,6 @@ func main() {
log.Fatal(err)
}
return
// Legacy
faker := faker.New()
for i := 0; i < 10; i++ {

BIN
videos.db

Binary file not shown.