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

util

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitStatements

func SplitStatements(statements string) []string

SplitStatements splits a string containing multiple sql statements separated by semicolons. It strips out comments from the statements, both simple (--) and bracketed (/* */) ones. It also handles sql strings properly which can contain semi colons, escaped quotes and comment character sequences without affecting the splitting behaviour.

Types

This section is empty.

Jump to

Keyboard shortcuts

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