about summary refs log tree commit diff
path: root/tools/mpd-stats/go.mod
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-10 12:58:56 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-11 14:32:08 -0700
commit90ebf54e100fbfd85388b89756718cf71cb69795 (patch)
tree9fbe277d305c46c9807c098d9a8a81768398e863 /tools/mpd-stats/go.mod
parentmpd-stats: create and run the scrobbler (diff)
downloadworld-90ebf54e100fbfd85388b89756718cf71cb69795.tar.gz
scrobbler: add interface to the sqlite3 database
We want to persist the records in a database, so we can extract
statistics and an history.

The module for the database is straightforward: it opens the database if
it exists and return an handler to it. If the database does not exists,
we create it and we create the only table we need (records).
Diffstat (limited to 'tools/mpd-stats/go.mod')
-rw-r--r--tools/mpd-stats/go.mod1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/mpd-stats/go.mod b/tools/mpd-stats/go.mod
index 6ffe974..cc9971c 100644
--- a/tools/mpd-stats/go.mod
+++ b/tools/mpd-stats/go.mod
@@ -5,4 +5,5 @@ go 1.17
 require (
 	github.com/fhs/gompd/v2 v2.2.0
 	github.com/google/uuid v1.3.0
+	github.com/mattn/go-sqlite3 v1.14.8
 )