db

package
v0.0.0-...-6cf74ba Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadDatabaseChecksum = errors.New("The code doesn't match the database's structure.")

Functions

func Checksum

func Checksum() string

Checksum is an autoapi-generated checksum of the state of the database, at time of generation.

func MustValidateChecksum

func MustValidateChecksum(db *sql.DB, dbName string)

MustValidateChecksum compares the checksum against the database, and panics if they don't match. Useful when you absolutely don't want to run the software against a non-matching version of the db.

func ValidateChecksum

func ValidateChecksum(db *sql.DB, dbName string) error

ValidateChecksum compares the checksum generated by Autoapi to the current state of the db, returning an error if they don't match.

Types

This section is empty.

Directories

Path Synopsis
mysql

Jump to

Keyboard shortcuts

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