db

package
Version: 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL