db

package
v0.0.0-...-d4224cb Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(connString string, maxConnections int) (*sql.DB, error)

Connect makes a connection to the PostgreSQL database and returns the sql.DB handler representing a pool of zero or more underlying connections.

func Setup

func Setup(db *sql.DB) error

Setup uses the existing database connection to create the necessary tables for the API (if they don't exist).

Types

This section is empty.

Jump to

Keyboard shortcuts

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