Categorygithub.com/hatchify/pgutils
modulepackage
0.4.85
Repository: https://github.com/hatchify/pgutils.git
Documentation: pkg.go.dev

# README

PGUtils

PGUtils is a simple Go wrapper for the Postgres built-in functions

Example configuration

host = "localhost"
port = 5432
user = "postgres"
password = ""
database = "postgres"

# Functions

Dump will dump a postgres database.
Import will import a PGDump file into the specified database.
NewConfig will return a new parsed postgres configuration from a toml source.
ReplaceArgs will replace arguments for queries This is quite useful when preparing statements with replacement variables without having to rely on an ORM.

# Structs

Config is the configuration for a postgres database.