Documentation ¶ Index ¶ Variables func Exists() bool func Open() error func Path() string func Use(db *sqlx.DB) 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. Source Files ¶ View all Source files db.go models.go Directories ¶ Show internal Expand all Path Synopsis model schema Click to show internal directories. Click to hide internal directories.