summaryrefslogtreecommitdiff
path: root/srv/src/mailinglist
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-06 17:22:17 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-06 17:22:21 -0600
commitf7d72adfb594980b0442c0fa7b5586e6248f96ac (patch)
tree05f3e80c1f8fc79b3ae67f886534681ddc8c0b62 /srv/src/mailinglist
parentd8b12cf17a43e700d841402f712efa8666e6137f (diff)
Implement post.Store
Diffstat (limited to 'srv/src/mailinglist')
-rw-r--r--srv/src/mailinglist/store.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/srv/src/mailinglist/store.go b/srv/src/mailinglist/store.go
index f9790c0..a7a210f 100644
--- a/srv/src/mailinglist/store.go
+++ b/srv/src/mailinglist/store.go
@@ -83,7 +83,8 @@ type store struct {
db *sql.DB
}
-// NewStore initializes a new store using the given SQL DB instance.
+// NewStore initializes a new Store using a sqlite3 database at the given file
+// path.
func NewStore(dbFile string) (Store, error) {
db, err := sql.Open("sqlite3", dbFile)