db

package
v0.0.0-...-c063610 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2015 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Projects is the query model for projects
	Projects *model.Query

	// ProjectEvents is the query model for project events
	ProjectEvents *model.Query

	// ProjectFiles is the query model for project files
	ProjectFiles *model.Query
)

Functions

func Exists

func Exists() bool

Exists returns true if the database exists. This is determined by looking for a database file entry.

func Open

func Open() error

Open sets up the models and the database. If the database doesn't exist then Open will create the database and it's schema.

func Path

func Path() string

Path returns the full path to the database file.

func Use

func Use(db *sqlx.DB)

Use sets the database connection for all the models.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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