sqlparse

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionOptions

type ExecutionOptions struct {
	UseTransaction bool
}

type Migration added in v0.12.0

type Migration struct {
	UpgradeScript   MigrationScript
	DowngradeScript MigrationScript
	Dependencies    []string
}

type MigrationScript

type MigrationScript struct {
	Contents string
	Options  ExecutionOptions
}

type SqlParser

type SqlParser interface {
	Parse(reader io.Reader) (Migration, error)
}

func NewSqlParser

func NewSqlParser() SqlParser

NewSqlParser creates a new SqlParser which can parse out a migration script.

Jump to

Keyboard shortcuts

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