postgres

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() (func(), error)

Connect creates a connection to postgres db

func GetConnection

func GetConnection() *pgxpool.Pool

GetConnection returns a previously created connection pool

func NewLinkDao

func NewLinkDao(conn *pgxpool.Pool) shortener.LinkDao

NewLinkDao instantiates a dao for link in 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