postgres

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(dsn string, opts ...OpenOptions) (norm.DB, error)

Open opens a PostgreSQL database connection using given DSN and options.

Types

type OpenOptions

type OpenOptions struct {
	// NowFunc is a function to return the current time. Default is time.Now().
	norm.NowFunc
}

OpenOptions contains options for opening a PostgreSQL database connection.

Jump to

Keyboard shortcuts

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