node

package
v0.0.0-...-f59c3e7 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdateFromV16 = updateFromV16

UpdateFromV16 is used by a legacy test in the parent package.

Functions

func EnsureSchema

func EnsureSchema(db *sql.DB, dir string, hook schema.Hook) (int, error)

EnsureSchema applies all relevant schema updates to the node-local database.

Return the initial schema version found before starting the update, along with any error occurred.

func Open

func Open(dir string) (*sql.DB, error)

Open the node-local database object.

func Schema

func Schema() *schema.Schema

Schema for the local database.

func SchemaDotGo

func SchemaDotGo() error

SchemaDotGo refreshes the schema.go file in this package, using the updates defined here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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