pgxsqlc

package
v0.0.0-...-a66760f Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 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 DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
	CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)

	Begin(context.Context) (pgx.Tx, error)
}

type Storage

type Storage struct {
	*sqlc.Queries
	// contains filtered or unexported fields
}

func (*Storage) BeginTx

func (s *Storage) BeginTx(ctx context.Context) (*TxStorage, error)

type TxStorage

type TxStorage struct {
	*sqlc.Queries
	// contains filtered or unexported fields
}

func (*TxStorage) Commit

func (s *TxStorage) Commit(ctx context.Context) error

func (*TxStorage) Rollback

func (s *TxStorage) Rollback(ctx context.Context) error

Jump to

Keyboard shortcuts

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