postgresql

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, conn string) (abstract.DB, error)

Types

type Psql

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

func (*Psql) BeginTransaction

func (p *Psql) BeginTransaction() (abstract.DB, error)

func (*Psql) Close

func (p *Psql) Close()

func (*Psql) Commit

func (p *Psql) Commit() error

func (*Psql) Connect

func (p *Psql) Connect() error

func (*Psql) Exec

func (p *Psql) Exec(query string, args ...interface{}) error

func (*Psql) Query

func (p *Psql) Query(dst interface{}, query string, args ...interface{}) error

func (*Psql) QueryRow

func (p *Psql) QueryRow(dst interface{}, query string, args ...interface{}) (bool, error)

func (*Psql) QueryValue

func (p *Psql) QueryValue(dst interface{}, query string, args ...interface{}) error

func (*Psql) Rollback

func (p *Psql) Rollback() error

Jump to

Keyboard shortcuts

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