readme

command
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 4 Imported by: 0

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

Documentation

Overview

read README.md.tmpl and find all ```go ``` snippets and run them

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL