database

package
v0.0.0-...-318ef2c Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2016 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase(cnf *config.Config) (*gorm.DB, error)

NewDatabase returns a gorm.DB struct, gorm.DB.DB() returns a database handle see http://golang.org/pkg/database/sql/#DB

Types

type TimestampModel

type TimestampModel struct {
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time
}

TimestampModel ...

Jump to

Keyboard shortcuts

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