mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
feat: add db access
This commit is contained in:
parent
11e27d5126
commit
11ff87ae26
@ -92,6 +92,10 @@ func (p *Persistor) Ping(ctx context.Context) error {
|
|||||||
return p.db.PingContext(ctx)
|
return p.db.PingContext(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *Persistor) DB() *sql.DB {
|
||||||
|
return p.db
|
||||||
|
}
|
||||||
|
|
||||||
func (p *Persistor) Conn(ctx context.Context) (*sql.Conn, error) {
|
func (p *Persistor) Conn(ctx context.Context) (*sql.Conn, error) {
|
||||||
return p.db.Conn(ctx)
|
return p.db.Conn(ctx)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user