postgres

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func New

func New(ctx context.Context, url string) (*Driver, error)

func (*Driver) Close

func (c *Driver) Close()

func (*Driver) CountRows

func (c *Driver) CountRows(ctx context.Context, query string, args ...interface{}) (int, error)

func (*Driver) ExecuteQuery

func (c *Driver) ExecuteQuery(ctx context.Context, query string, args ...interface{}) error

func (*Driver) Ping

func (c *Driver) Ping(ctx context.Context) error

func (*Driver) QueryRow

func (c *Driver) QueryRow(ctx context.Context, query string, args ...interface{}) (pgx.Row, error)

func (*Driver) QueryRows

func (c *Driver) QueryRows(ctx context.Context, query string, args ...interface{}) (pgx.Rows, error)

Jump to

Keyboard shortcuts

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