summaryrefslogtreecommitdiff
path: root/internal/store
diff options
context:
space:
mode:
Diffstat (limited to 'internal/store')
-rw-r--r--internal/store/sqlite.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/store/sqlite.go b/internal/store/sqlite.go
index dac3321..7961f35 100644
--- a/internal/store/sqlite.go
+++ b/internal/store/sqlite.go
@@ -59,6 +59,11 @@ func (s *Store) Close() error {
return s.db.Close()
}
+// DB returns the underlying database connection
+func (s *Store) DB() *sql.DB {
+ return s.db
+}
+
// runMigrations executes all migration files in order
func (s *Store) runMigrations() error {
// Get migration files