postgres

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewThingService

func NewThingService(psql *psqlService) *thingService

func Open

func Open(config Config) (*psqlService, error)

Open opens a postgres database and returns a service to interact with it.

Types

type Config

type Config struct {
	Password string
	User     string
	Name     string
	Host     string
	SSLMode  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳