package
0.0.2
Repository: https://github.com/talon-one/go-txhelper.git
Documentation: pkg.go.dev

# README

go-txhelper Actions Status Coverage Status PkgGoDev GoDoc go-report

go-txhelper is a module that abstracts database transaction behaviour. It does so by differentiating between Read and Write operations.

It is designed for the use of mappers where you do not know whether you need a transaction or not.

Example

<$
package main

import (
	"io"
	"os"
)

func main() {
	f, err := os.Open("./example/main.go")
	if err != nil {
		panic(err)
	}
	defer f.Close()
	_, err = io.Copy(os.Stdout, f)
	if err != nil {
		panic(err)
	}
}
-$>