db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 24

Documentation

Index

Constants

View Source
const (
	Transaction = transactionArgumentKey(iota)
)

Variables

View Source
var Db *sql.DB

Functions

This section is empty.

Types

type RequestTransaction

type RequestTransaction struct {
	Db *sql.DB
}

Transaction is a decorator which manages a transaction for an HTTP request. It will Commit the transaction iff the handler returns something other than an error and it did not panic; it Rollbacks otherwise.

func (RequestTransaction) Decorate

Jump to

Keyboard shortcuts

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