pq

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

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

func New

func New() Postgres

func (*Postgres) DB

func (p *Postgres) DB() *sql.DB

func (*Postgres) InsertOrUpdateStruct

func (p *Postgres) InsertOrUpdateStruct(tableName string, data any, params ...any) (sql.Result, error)

func (*Postgres) Query

func (p *Postgres) Query(q string, fields any, params ...any) error

func (*Postgres) Row

func (p *Postgres) Row(q string, fields any, params ...any) error

func (*Postgres) SqlExec

func (p *Postgres) SqlExec(query string, name string, params ...any) (map[string]any, sql.Result)

Jump to

Keyboard shortcuts

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