feat: add db access

This commit is contained in:
Kevin Franklin Kim 2022-07-05 16:19:41 +02:00
parent 11e27d5126
commit 11ff87ae26

View File

@ -92,6 +92,10 @@ func (p *Persistor) Ping(ctx context.Context) error {
return p.db.PingContext(ctx)
}
func (p *Persistor) DB() *sql.DB {
return p.db
}
func (p *Persistor) Conn(ctx context.Context) (*sql.Conn, error) {
return p.db.Conn(ctx)
}