package batch

import "github.com/microsoft/go-mssqldb/batch"

bach splits a single script containing multiple batches separated by a keyword into multiple scripts.

Index

Functions

func Split

func Split(sql, separator string) []string

Split the provided SQL into multiple sql scripts based on a given separator, often "GO". It also allows escaping newlines with a backslash.

Source Files

batch.go

Version
v1.6.0
Published
Aug 31, 2023
Platform
darwin/amd64
Imports
5 packages
Last checked
1 hour ago

Tools for package owners.