diff options
author | Jordan <me@jordan.im> | 2021-12-03 11:13:53 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-12-03 11:13:53 -0700 |
commit | 03bd97a15be6086ddf16521aa0d6fc6d3282ebde (patch) | |
tree | a16510a3dd6f6c2c511735a9f1b787529e22da55 | |
parent | 63e7cf8f033c2aaf101c33af379d17d379ae6ba8 (diff) | |
download | keep-03bd97a15be6086ddf16521aa0d6fc6d3282ebde.tar.gz keep-03bd97a15be6086ddf16521aa0d6fc6d3282ebde.zip |
db: Close() after init
-rw-r--r-- | db.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -46,6 +46,7 @@ func initTables(db *sql.DB) { if err != nil { log.Fatal(err) } + defer s.Close() s.Exec() } |