dbm

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBAccess orm.Ormer

DBAccess is Ormer object interface for all transaction processing and switching database

Functions

func Cleanup

func Cleanup()

Cleanup cleans up resources

func InitDBManager

func InitDBManager()

InitDBManager initialises the database by syncing the database schema and creating orm

func IsNonUniqueNameError

func IsNonUniqueNameError(err error) bool

IsNonUniqueNameError tests if the error returned by sqlite is unique. It will check various sqlite versions.

func RegisterModel

func RegisterModel(moduleName string, m interface{})

RegisterModel registers the defined model in the orm if model is enabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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