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

dialect

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Postgres  = "postgres"
	MySQL     = "mysql"
	SQLite    = "sqlite"
	SQLServer = "sqlserver"
)

Variables

This section is empty.

Functions

func IsKnown

func IsKnown(name string) bool

func Names

func Names() []string

Names returns every dialect accepted by the CLI in display order. The returned slice is independent and may be modified by the caller.

func RequireMinimumVersion

func RequireMinimumVersion(product, current string, minimum Version) error

Types

type Backend

type Backend interface {
	Inspect(ctx context.Context, dsn string) (*Inspection, error)
	Render(ctx context.Context, m *manifest.Manifest, outputFolder string) error
}

type Inspection

type Inspection struct {
	DatabaseName string
	Manifest     *manifest.Manifest
}

type NotImplementedError

type NotImplementedError struct {
	Dialect string
}

func (NotImplementedError) Error

func (e NotImplementedError) Error() string

type PrimaryKeyCounts added in v0.2.0

type PrimaryKeyCounts map[manifest.TableKey]int64

PrimaryKeyCounts records native key sizes independently of column visibility. Ordinal validation alone cannot detect a missing tail (or an entirely hidden key).

func (PrimaryKeyCounts) Observe added in v0.2.0

func (counts PrimaryKeyCounts) Observe(key manifest.TableKey, size int64) error

func (PrimaryKeyCounts) Validate added in v0.2.0

func (counts PrimaryKeyCounts) Validate(table manifest.Table) error

type Version

type Version struct {
	Major int
	Minor int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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