db

package
v0.0.0-...-17df326 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvVars map[string]string

EnvVars exposes map of env variables

Functions

func First

func First(db *gorm.DB, dst interface{}) error

First will return first record matched if record found, return record if any other error, return error with more information

Types

type Database

type Database struct {
	DB   *gorm.DB
	Hmac utils.HMAC
}

Database exposes db instance and related services

func New

func New() (*Database, error)

New create a connection to database

Jump to

Keyboard shortcuts

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