db

package
v0.0.0-...-2f0704d Latest Latest
Warning

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

Go to latest
Published: May 13, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

Database struct

func NewDatabase

func NewDatabase(driver, user, password, host, port, database string) *Database

NewDatabase return new Database object

func (*Database) Connnect

func (m *Database) Connnect() (*gorm.DB, error)

Connnect and return new connection to database

Jump to

Keyboard shortcuts

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