parser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile

func ParseFile(fileSystem fs.FS, filePath string) (driver.MigrationPayload, error)

ParseFile reads an SQL file from any fs.FS (supports both physical directories and embed.FS) and converts it into a MigrationPayload.

func SplitStatements

func SplitStatements(rawSQL string) []string

SplitStatements safely splits a raw SQL script into individual statements by semicolon (;), ignoring semicolons inside strings or comments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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