Added function to retriever the underlying database connection pool

This commit is contained in:
Technerder
2021-07-10 21:09:49 -04:00
parent bd837d91ab
commit 9c850f5235
3 changed files with 9 additions and 0 deletions

View File

@@ -209,4 +209,8 @@ func (s *Storage) checkSchema(tableName string) {
if strings.ToLower(string(data)) != "bytea" {
fmt.Printf(checkSchemaMsg, string(data))
}
}
func (s *Storage) DB() *pgxpool.Pool {
return s.db
}