client

package
v0.0.0-...-7399cd4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMigrationVersion

func CheckMigrationVersion(ctx context.Context, connectionString string, expectedMigration int64) error

Types

type Client

type Client struct {
	*database.Queries
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, databaseURL string, options ...pool.Option) (*Client, error)

func (*Client) Close

func (db *Client) Close() error

func (*Client) TestsRawSQL

func (db *Client) TestsRawSQL(ctx context.Context, sql string, args ...any) error

func (*Client) TestsRawSQLQuery

func (db *Client) TestsRawSQLQuery(ctx context.Context, sql string, processRows func(pgx.Rows) error, args ...any) error

func (*Client) WithTx

func (db *Client) WithTx(ctx context.Context) (*Client, pgx.Tx, error)

WithTx starts a read-write transaction and returns a transactional Client.

Jump to

Keyboard shortcuts

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