db

package
v0.0.0-...-16abdb1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conn *gorm.DB

Conn is a global threadsafe database handle.

Functions

func NotFound

func NotFound(err error) bool

NotFound returns whether err is wrapping a gorm record not found error.

func QueryError

func QueryError(err error) bool

QueryError returns whether the error is an unexpected sql error, as opposed to a record not found.

func Start

func Start(connString string) (err error)

Start connects to a postgres database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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