base

package
v0.0.0-...-4f3821b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataDir string
View Source
var Database *sql.DB
View Source
var UnknownError error = errors.New("AN UNKNOWN ERROR")

Functions

func CheckAndMakeDir

func CheckAndMakeDir(name string)

func DeleteFile

func DeleteFile(name string)

func InTransaction

func InTransaction(action func(tx *sql.Tx) ([]string, error)) error

func OpenWhenExistOrCreate

func OpenWhenExistOrCreate(name string) *os.File

func Prepare

func Prepare()

call after SQLInit

func RegisterPrepare

func RegisterPrepare(p func())

func SQLPrepare

func SQLPrepare(query string) (*sql.Stmt, error)

func SqlInit

func SqlInit(sqlName, databaseName, password, userName, host string) error

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