Skip to content

Added support to close connection pool

Latest
Compare
Choose a tag to compare
@Kansuler Kansuler released this 04 Nov 09:45
3ec0dd0
  • Added support to close connection pool
ob, err := octobe.New(postgres.Open(ctx, dsn, postgres.WithTransaction(postgres.TxOptions{})))
if err != nil {
	// ... error
}

// ... do stuff

// New method
err = ob.Close(ctx)
if err != nil {
	// ... error
}