- 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
}
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
}