schema

package
v0.0.0-...-c50d277 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drop

func Drop(ctx context.Context, db driver.Database) error

Drop deletes the provly database without backeups.

func Migrate

func Migrate(ctx context.Context, db driver.Database) error

Migrate attempts to bring the schema for db up to date with the migrations defined in this package.

func Seed

func Seed(ctx context.Context, db driver.Database) error

Seed runs the set of seed-data queries against db. The queries are ran in a transaction and rolled back if any fail.

func SeedDemo

func SeedDemo(ctx context.Context, db driver.Database) error

SeedDemo runs the set of seed-data queries against db. The queries are ran in a transaction and rolled back if any fail. These seeds are quite a bit more elaborate then the normal seeds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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