database

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package database provides the database migration tooling for the minder application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator interface {
	Up() error
	Down() error
	Steps(int) error
	Version() (uint, bool, error)
}

Migrator is the interface for the migration tooling.

func NewFromConnectionString

func NewFromConnectionString(connString string) (Migrator, error)

NewFromConnectionString returns a new migration instance from the given connection string.

Directories

Path Synopsis
Package mockdb is a generated GoMock package.
Package mockdb is a generated GoMock package.
fixtures
Package fixtures contains code for creating RepositoryService fixtures and is used in various parts of the code.
Package fixtures contains code for creating RepositoryService fixtures and is used in various parts of the code.

Jump to

Keyboard shortcuts

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