postgresql

package
v0.0.0-...-996fc41 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDuration

func ParseDuration(input string) time.Duration

Types

type PostgresOop

type PostgresOop struct {
	DB *pgxpool.Pool
}

func Init

func Init(user, pass, host, dbname string, maxConns int, connMaxLifetime, connMaxIdleTime string) (*PostgresOop, error)

func (*PostgresOop) Delete

func (r *PostgresOop) Delete(queryStatement string) (int, error)

func (*PostgresOop) Insert

func (r *PostgresOop) Insert(queryStatement string) (int, error)

func (*PostgresOop) Select

func (r *PostgresOop) Select(queryStatement string) ([]map[string]interface{}, error)

func (*PostgresOop) Update

func (r *PostgresOop) Update(queryStatement string) (int, error)

Jump to

Keyboard shortcuts

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