database

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: AGPL-3.0 Imports: 17 Imported by: 8

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 ExtractVersionNumber added in v0.26.0

func ExtractVersionNumber(s string) (num int)

ExtractVersionNumber checks and sends back an integer. MySQL can have version numbers like 5.5.47-0ubuntu0.14.04.1

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