specs

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeColumnSpec

type ChangeColumnSpec struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	Default  any    `json:"default"`
	Nullable bool   `json:"nullable"`
}

type ChangeIndexSpec

type ChangeIndexSpec struct {
	Name    string   `json:"name"`
	Unique  bool     `json:"unique"`
	Columns []string `json:"columns"`
}

type CreateColumnSpec

type CreateColumnSpec struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	Default  any    `json:"default"`
	Nullable bool   `json:"nullable"`
}

type CreateIndexSpec

type CreateIndexSpec struct {
	Name    string   `json:"name"`
	Unique  bool     `json:"unique"`
	Columns []string `json:"columns"`
}

type CreateTableSpec

type CreateTableSpec struct {
	Name       string `json:"name"`
	Definition string `json:"definition"`
}

type DDLSpec

type DDLSpec struct {
	Statement string `json:"statement"`
}

func (*DDLSpec) UnmarshalJSON

func (s *DDLSpec) UnmarshalJSON(data []byte) error

type RemoveColumnSpec

type RemoveColumnSpec struct {
	Name string `json:"name"`
}

type RemoveIndexSpec

type RemoveIndexSpec struct {
	Name string `json:"name"`
}

type RemoveTableSpec

type RemoveTableSpec struct {
	Name string `json:"name"`
}

type RenameColumnSpec

type RenameColumnSpec struct {
	OldName string `json:"old_name"`
	NewName string `json:"new_name"`
}

type RenameIndexSpec

type RenameIndexSpec struct {
	OldName string `json:"old_name"`
	NewName string `json:"new_name"`
}

type RenameTableSpec

type RenameTableSpec struct {
	OldName string `json:"old_name"`
	NewName string `json:"new_name"`
}

Jump to

Keyboard shortcuts

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