postgresrepo

package
v0.0.0-...-1d236d0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 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 DbDriver

type DbDriver interface {
	// Query(ctx context.Context, sql string, optionsAndArgs ...interface{}) (pgx.Rows, error)
	// QueryRow(ctx context.Context, sql string, optionsAndArgs ...interface{}) pgx.Row
	Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error)
}

type PostgresRepo

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

func New

func New(dbDriver DbDriver) *PostgresRepo

func (PostgresRepo) SetUser

func (pr PostgresRepo) SetUser(ctx context.Context, user *pb.User) error

Jump to

Keyboard shortcuts

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