database

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTransaction

type DBTransaction struct {
	Builder squirrel.StatementBuilderType
	// contains filtered or unexported fields
}

DBTransaction used to aggregate transactions

func OpenConnection

func OpenConnection(ctx context.Context, readOnly bool) (*DBTransaction, error)

OpenConnection initialize connection with database

func (*DBTransaction) Commit

func (t *DBTransaction) Commit() (erro error)

Commit commit pending transactions for all open databases

func (*DBTransaction) Rollback

func (t *DBTransaction) Rollback()

Rollback rollback transaction pending for all open databases

Jump to

Keyboard shortcuts

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