types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiagnosticLevelFatal   = "FATAL"
	DiagnosticLevelWarning = "WARNING"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzedMigrationsSummary

type AnalyzedMigrationsSummary struct {
	Reports []Report `json:"reports"`
}

type Diagnostic

type Diagnostic struct {
	LineNumber   int    `json:"lineNumber"`
	LinePosition int    `json:"linePosition"`
	Text         string `json:"text"`
	Code         string `json:"code"`
	Level        string `json:"level"`
}

type MigrationManagerMetadata

type MigrationManagerMetadata struct {
	Name             string            `json:"name"`
	ConnectionString string            `json:"connectionString"`
	Config           map[string]string `json:"config,omitempty"`
}

type ParsedMigration

type ParsedMigration struct {
	Applied          bool              `json:"applied"`
	FileName         string            `json:"fileName"`
	FilePath         string            `json:"filePath"`
	RelativeFilePath string            `json:"relativeFilePath"`
	Version          string            `json:"version"`
	Up               string            `json:"up"`
	UpOptions        map[string]string `json:"upOptions"`
	Down             string            `json:"down"`
	DownOptions      map[string]string `json:"downOptions"`
}

type ParsedMigrationsSummary

type ParsedMigrationsSummary struct {
	Metadata   MigrationManagerMetadata `json:"metadata"`
	Migrations []ParsedMigration        `json:"migrations"`
}

type Report

type Report struct {
	// Reference to the entire Migration object for context
	Migration   ParsedMigration   `json:"migration"`
	Text        string            `json:"text"`
	Diagnostics []Diagnostic      `json:"diagnostics,omitempty"`
	Actions     []string          `json:"actions"`
	Config      map[string]string `json:"config,omitempty"`
}

Jump to

Keyboard shortcuts

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