db

package
v0.0.0-...-7b1348d Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package db wraps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() *sqlx.DB

DB returns a pointer to the configured database abstraction for this pkg.

func DownMigrate

func DownMigrate(migrationsDir string) error

DownMigrate down-migrates all migration files in migrationsDir.

func Init

func Init()

Init configures the current pkg using env vars (via initialize). While using init would be nice, Init allows us to be more explicit in different environments and helps to enforce one-time initialization.

Types

This section is empty.

Jump to

Keyboard shortcuts

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