database

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(Db *sqlx.DB, connectionString string) bool

Check that the database is configured correctly and that all the required tables exist. It must be the first function called in this package.

func Create

func Create(w http.ResponseWriter, r *http.Request)

Create the tables in a blank database

func GetSQLVariant added in v0.39.0

func GetSQLVariant(vc string) string

GetSQLVariant uses database value form @@version_comment to deduce MySQL variant.

func GetSQLVersion added in v0.39.0

func GetSQLVersion(v string) (ints []int, err error)

GetSQLVersion returns SQL version as major,minor,patch numerics.

func Migrate

func Migrate(ConfigTableExists bool) error

Migrate the database as required, consolidated action.

Types

This section is empty.

Jump to

Keyboard shortcuts

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