transaction

package
v0.0.0-...-45a04b4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Factory represents a transaction factory for atomic database and queue ops.

func NewFactory

func NewFactory(db *sql.DB) *Factory

NewFactory creates a new instance of the transaction factory.

func (*Factory) NewTxn

func (f *Factory) NewTxn(ctx context.Context) (transaction.Txn, error)

NewTxn creates a new transaction object.

Jump to

Keyboard shortcuts

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