package
0.0.0-20200410125831-ec76d085169a
Repository: https://github.com/goofinator/usershttp.git
Documentation: pkg.go.dev
# Functions
CheckResult check result,err:=SQL.Exec() pair.
CloseTransaction closes transaction if global error defined if no error occured then commit will be called or else - rollback
should use as follow: func f() (err error){ tx, err := db.Begin() if err != nil { return err } defer func() { err = closeTransaction(tx, err) }() ..
InitSQL prepares SQL to use.
# Constants
CreateScript is a name of sqript file to create a table.
ScriptsDirectory is a base directory where the *.sql scripts will be searched for.
# Variables
SQL stores sqlx database intity Before use, the InitSql should be called.