authdb

package
v0.0.0-...-2013afe Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Read  *authqueries.Queries
	Write *authqueries.Queries
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, databaseURL, replicaURL 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

TestsRawSQL executes raw SQL for tests

func (*Client) TestsRawSQLQuery

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

TestsRawSQLQuery executes raw SQL query and processes rows with the given function

func (*Client) WithTx

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

WithTx runs the given function in a transaction.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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