postgres

package
v0.0.0-...-66ffae8 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package postgres provides functionality to connect to a postgres database.

Index

Constants

View Source
const (
	// Port is the default port number for postgres.
	Port = 5432
)

Variables

This section is empty.

Functions

func Connect

func Connect(host string, port int, user, passwd, dbname, ssl string) (db *sql.DB, close func() error, err error)

Connect creates a new connection to a postgres db.

Types

This section is empty.

Jump to

Keyboard shortcuts

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