From 6a1eabf52550817a0dbe47c37c59cd71b3a331ab Mon Sep 17 00:00:00 2001 From: Micheal Wilkinson Date: Tue, 17 Mar 2026 22:43:14 +0000 Subject: [PATCH] Adding exposure for Read and Write DB --- internal/store/sqlite/export_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 internal/store/sqlite/export_test.go 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 +}