database

package
v0.0.0-...-2992433 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbConnect

func DbConnect() (*sql.DB, error)

DbConnect establishes a connection with MatterhornDb and returns a sql DB instance. On failure, logs error message and immediately exits program.

func Migrate

func Migrate(db *sql.DB)

Migrate executed migrations on the given database. On failure, logs error message and immediately exits program.

func TryExtractMySQLErrorCode

func TryExtractMySQLErrorCode(err error) (*uint16, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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