mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
Added function to retriever the underlying database connection pool
This commit is contained in:
@@ -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
|
||||
}
|
Reference in New Issue
Block a user