diff --git a/internal/store/sqlite/export_test.go b/internal/store/sqlite/export_test.go new file mode 100644 index 0000000..c297976 --- /dev/null +++ b/internal/store/sqlite/export_test.go @@ -0,0 +1,13 @@ +package sqlite + +import "database/sql" + +// ReadDBForTest exposes the read connection for external tests. +func (s *SQLiteStore) ReadDBForTest() *sql.DB { + return s.read +} + +// WriteDBForTest exposes the write connection for external tests. +func (s *SQLiteStore) WriteDBForTest() *sql.DB { + return s.write +}