schema

package
v0.0.0-...-fdd12d1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package schema defines the database schema, migrations, and seed data for persisting records in the project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sqlx.DB) error

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

func Seed

func Seed(db *sqlx.DB) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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