database

package module
v0.0.0-...-29a06b9 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabase

func GetDatabase(namespace ...string) *gorm.DB

GetDatabase returns the requested database

Types

type App

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

App is the enliven application that sets up and manages the db

func NewApp

func NewApp(namespace ...string) *App

NewApp creates and returns an instance of the database app

func (*App) GetName

func (da *App) GetName() string

GetName gets the database app name

func (*App) Initialize

func (da *App) Initialize(ev *enliven.Enliven)

Initialize sets up a database given the values from the supplied config

Jump to

Keyboard shortcuts

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