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.