Documentation ¶
Index ¶
- Variables
- func CheckAndMakeDir(name string)
- func DeleteFile(name string)
- func InTransaction(action func(tx *sql.Tx) ([]string, error)) error
- func OpenWhenExistOrCreate(name string) *os.File
- func Prepare()
- func RegisterPrepare(p func())
- func SQLPrepare(query string) (*sql.Stmt, error)
- func SqlInit(sqlName, databaseName, password, userName, host string) error
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 OpenWhenExistOrCreate ¶
func RegisterPrepare ¶
func RegisterPrepare(p func())
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.