stdmagepgschema

package
v0.0.185 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package stdmagepgschema provides standardized database schema handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(dir, dotEnvDevEnv, databaseURLEnvVarName string, _ ...[]string)

Init inits the mage targets. The weird signature is to make Mage ignore this when importing.

func Snapshot

func Snapshot(ctx context.Context) error

Snapshot a cleanly migrated database into a sql file.

func Status

func Status(ctx context.Context, env string) error

Status returns the database status.

func Up

func Up(ctx context.Context, env string) error

Up the schema up status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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