database

package
v12.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2018 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenAndPrepare

func OpenAndPrepare(dbPath string) (*gorm.DB, error)

OpenAndPrepare returns a connection to butler's sqlite database

func Prepare

func Prepare(db *gorm.DB) (*gorm.DB, error)

Prepare synchronizes schemas, runs migrations etc.

func SetLogger

func SetLogger(db *gorm.DB, consumer *state.Consumer)

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