database

package
v0.0.0-...-64033a1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package database defines technical database lifecycle contracts shared by PostgreSQL infrastructure. Business-facing models and errors live in domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrationStatus

type MigrationStatus int

MigrationStatus represents the state of database migrations. It indicates how many of the available migration files have been successfully applied to the database.

const (
	// StatusNone indicates that no migrations have been applied to the database.
	// This typically occurs on a fresh database installation.
	StatusNone MigrationStatus = 0

	// StatusPartial indicates that some, but not all, migrations have been applied.
	// This may occur when migrations are added over time or if a migration failed.
	StatusPartial MigrationStatus = 1

	// StatusComplete indicates that all available migrations have been successfully applied.
	// The database schema is current with all migration files.
	StatusComplete MigrationStatus = 2
)

Migration status constants using idiomatic Go naming. These constants represent the different states of database migration completion.

Directories

Path Synopsis
Package postgres provides PostgreSQL connection, migration, and metrics infrastructure.
Package postgres provides PostgreSQL connection, migration, and metrics infrastructure.
db

Jump to

Keyboard shortcuts

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