data

package
v0.0.0-...-64f9010 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: BSD-3-Clause, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Schema graphql.Schema

	Person  *graphql.Object
	Debt    *graphql.Object
	Expense *graphql.Object
	House   *graphql.Object

	DbMap *gorp.DbMap

	Me entities.Person
)

Functions

func InitDB

func InitDB(env string) (*gorp.DbMap, error)

Types

type DatabaseConfig

type DatabaseConfig struct {
	Environments map[string]DatabaseEnvironment
}

type DatabaseEnvironment

type DatabaseEnvironment struct {
	Database string `yaml:"database"`
	User     string `yaml:"username"`
	Adapter  string `yaml:"go_adapter"`
}

Jump to

Keyboard shortcuts

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