dbmigrate

package
v0.0.0-...-9d47661 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package dbmigrate contains the databse schema, migrations, and seeding data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(ctx context.Context, db *sqlx.DB) error

Migrate attempts to bring the database up to date with the migrations defined in this package.

func Seed

func Seed(ctx context.Context, db *sqlx.DB) error

Seed runs the seed document defined in this package against the db. The queries are run 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