db

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection() (transaction.Connection, error)

Types

type Connection

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

func (Connection) BeginRoTransaction

func (t Connection) BeginRoTransaction(ctx context.Context, f func(ctx context.Context, tx transaction.Transaction) error, opts ...transaction.Option) error

func (Connection) BeginRwTransaction

func (t Connection) BeginRwTransaction(ctx context.Context, f func(ctx context.Context, tx transaction.Transaction) error, opts ...transaction.Option) error

func (Connection) Close

func (t Connection) Close() error

Jump to

Keyboard shortcuts

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