summaryrefslogtreecommitdiff
path: root/setup.go
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-07 23:40:02 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-07 23:40:02 -0500
commite3cc2555ec52312deb5498df07ffb8b6e03c7329 (patch)
tree84e6d9c526438e7f63d7c4c9ae954e6df85ade46 /setup.go
parent729eca86cd34c1d93c220315e4736836634f84ed (diff)
Can now create cards
Diffstat (limited to 'setup.go')
-rw-r--r--setup.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/setup.go b/setup.go
index 4506282..83827c5 100644
--- a/setup.go
+++ b/setup.go
@@ -17,7 +17,6 @@ func setupDatabase() (*sql.DB, error) {
if err != nil {
return nil, fmt.Errorf("opening DB '%s': %s", dictionary, err)
}
- defer db.Close()
_, err = db.Exec("create table IF NOT EXISTS words (word text not null, definition text);")
if err != nil {