Adding exposure for Read and Write DB
This commit is contained in:
13
internal/store/sqlite/export_test.go
Normal file
13
internal/store/sqlite/export_test.go
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user