sqlfile

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(ctx context.Context, r io.Reader) ([]string, error)

Split reads SQL queries from an io.Reader and returns them as a slice of strings. Each SQL query is delimited by a semicolon (;). The function handles: - Single-line comments (-- comment) - Multi-line comments (/* comment */) - Single-quoted strings ('string') - Double-quoted identifiers ("identifier") - Dollar-quoted strings ($$string$$ or $tag$string$tag$)

Types

This section is empty.

Jump to

Keyboard shortcuts

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