repo_system

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomQuerier

type CustomQuerier struct {
	*Queries
	// contains filtered or unexported fields
}

func NewCustom

func NewCustom(psql DBTX) *CustomQuerier

func (*CustomQuerier) GetMigrationVersion

func (s *CustomQuerier) GetMigrationVersion(ctx context.Context) (uint64, error)

func (*CustomQuerier) WithTx

func (s *CustomQuerier) WithTx(tx pgx.Tx) *CustomQuerier

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
}

type ICustomQuerier

type ICustomQuerier interface {
	GetMigrationVersion(ctx context.Context) (uint64, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

Jump to

Keyboard shortcuts

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