node

package
v0.0.0-...-a810e79 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const UpdateFromPreClustering = 36

UpdateFromPreClustering is the last schema version where clustering support was not available, and hence no cluster dqlite database is used.

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 FreshSchema

func FreshSchema() string

FreshSchema returns the fresh schema definition of the local database.

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