dbmigrations

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package dbmigrations implements MCP tools for GitLab database migration administration.

The package wraps the GitLab Database migrations API:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionSpecs

func ActionSpecs(client *gitlabclient.Client) []toolutil.ActionSpec

ActionSpecs returns canonical specs for database migration tools.

func FormatMarkMarkdown

func FormatMarkMarkdown(out MarkOutput) string

FormatMarkMarkdown formats the mark migration result as markdown.

Types

type MarkInput

type MarkInput struct {
	Version  int64  `json:"version" jsonschema:"Migration version number to mark as successful,required"`
	Database string `json:"database,omitempty" jsonschema:"Database name (optional, e.g. main or ci)"`
}

MarkInput is the input for marking a migration as successful.

type MarkOutput

type MarkOutput struct {
	toolutil.HintableOutput
	Status  string `json:"status"`
	Version int64  `json:"version"`
}

MarkOutput is the output for marking a migration as successful.

func Mark

func Mark(ctx context.Context, client *gitlabclient.Client, input MarkInput) (MarkOutput, error)

Mark marks a pending database migration as successfully executed.

Jump to

Keyboard shortcuts

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