Help us shape the future of Go! Take the 2026 Go Developer Survey

dbmigrations

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 6 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 FormatMarkMarkdown

func FormatMarkMarkdown(out MarkOutput) string

FormatMarkMarkdown renders the result of marking a migration as the card of one object.

It used to write "**Status**: %s | **Version**: %d" as a bare paragraph, which put the status into a line the card escaped nothing in: a status carrying a tag reached the page as markup, and one carrying a line break added a heading or a list item of its own.

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 the migration belongs to. Defaults to main"`
}

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