database

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(runtime env.Runtime) 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