mirror of
https://github.com/gofiber/storage.git
synced 2025-10-06 00:57:38 +08:00
add conn
This commit is contained in:
@@ -160,6 +160,11 @@ func (s *Storage) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Return database client
|
||||
func (s *Storage) Conn() *pgxpool.Pool {
|
||||
return s.db
|
||||
}
|
||||
|
||||
// gcTicker starts the gc ticker
|
||||
func (s *Storage) gcTicker() {
|
||||
ticker := time.NewTicker(s.gcInterval)
|
||||
|
Reference in New Issue
Block a user