connection

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	ProjectID string
	DatasetID string
	Conn      *sql.Conn
}

func (*Conn) Begin

func (c *Conn) Begin(ctx context.Context) (*Tx, error)

type Manager

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

func NewManager

func NewManager(db *sql.DB) *Manager

func (*Manager) Connection

func (m *Manager) Connection(ctx context.Context, projectID, datasetID string) (*Conn, error)

type Tx

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

func (*Tx) Commit

func (t *Tx) Commit() error

func (*Tx) ContentRepoMode

func (t *Tx) ContentRepoMode() error

func (*Tx) MetadataRepoMode

func (t *Tx) MetadataRepoMode() error

func (*Tx) RollbackIfNotCommitted

func (t *Tx) RollbackIfNotCommitted() error

func (*Tx) SetProjectAndDataset

func (t *Tx) SetProjectAndDataset(projectID, datasetID string)

func (*Tx) Tx

func (t *Tx) Tx() *sql.Tx

Jump to

Keyboard shortcuts

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