diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-05-06 17:22:17 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-05-06 17:22:21 -0600 |
commit | f7d72adfb594980b0442c0fa7b5586e6248f96ac (patch) | |
tree | 05f3e80c1f8fc79b3ae67f886534681ddc8c0b62 /srv/src/mailinglist | |
parent | d8b12cf17a43e700d841402f712efa8666e6137f (diff) |
Implement post.Store
Diffstat (limited to 'srv/src/mailinglist')
-rw-r--r-- | srv/src/mailinglist/store.go | 3 |
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) |