Skip to content

Commit dc1fa45

Browse files
committed
♻️ refactor: updated codebase #2
1 parent 66760d1 commit dc1fa45

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

postgresconn/postgresconn.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ func (p *Postgres) Json() string {
4848
return utils.ToJson(p)
4949
}
5050

51+
func (p *Postgres) GetConn() *sqlx.DB {
52+
return p.conn
53+
}
54+
5155
func NewClient(config postgres.PostgresConfig) (*Postgres, dbx.Dbx) {
5256
s := dbx.NewDbx().SetDatabase(config.Database)
5357
if !config.IsEnabled {

0 commit comments

Comments
 (0)