parser

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMigrationName

func ParseMigrationName(filename string) (string, bool)

ParseMigrationName parses the migration filename to extract table name and whether it's a create migration.

Types

type MigrationInfo added in v0.4.0

type MigrationInfo struct {
	TableName string
	Type      MigrationType
	IsCreate  bool // Backwards compatibility
}

MigrationInfo contains parsed migration information.

func ParseMigrationInfo added in v0.4.0

func ParseMigrationInfo(filename string) MigrationInfo

ParseMigrationInfo provides detailed migration information.

type MigrationType added in v0.4.0

type MigrationType int

MigrationType pattern types.

const (
	MigrationTypeUnknown MigrationType = iota
	MigrationTypeCreate
	MigrationTypeUpdate
)

Jump to

Keyboard shortcuts

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