db

package
v0.0.0-...-4a118a0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CreateTables

func CreateTables()

*

  • create models tables

func DropTables

func DropTables()

*

  • drop models tables

func Init

func Init()

*

  • Initialize database connection.

func Migrate

func Migrate()

*

  • migrate tables.

func RunFixtures

func RunFixtures()

*

  • Insert database fixture here.

Types

type Config

type Config struct {
	Name     string `json:"name"`
	User     string `json:"user"`
	Password string `json:"password"`
	Host     string `json:"host"`
	Port     string `json:"port"`
	Dialect  string `json:"dialect"`
}

*

  • Database config structure.

Jump to

Keyboard shortcuts

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