schema

package
v0.0.0-...-faaee1e Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package schema contains the db schema, migrations and seeding data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAll

func DeleteAll(db *sqlx.DB) error

DeleteAll runs the set of Drop-table queries against db. The queries are ran in a transaction and rolled back if any fail.

func Migrate

func Migrate(db *sqlx.DB) error

func Seed

func Seed(db *sqlx.DB) error

Seed func inserts seed-data into the db. It uses a transaction so if any `seed query` fails, it runs a rollback operation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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