Skip to content

Commit

Permalink
♻️ refactor: updated codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Nov 5, 2023
1 parent 66760d1 commit dc1fa45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions postgresconn/postgresconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ func (p *Postgres) Json() string {
return utils.ToJson(p)
}

func (p *Postgres) GetConn() *sqlx.DB {
return p.conn
}

func NewClient(config postgres.PostgresConfig) (*Postgres, dbx.Dbx) {
s := dbx.NewDbx().SetDatabase(config.Database)
if !config.IsEnabled {
Expand Down

0 comments on commit dc1fa45

Please sign in to comment.