package batch

import "github.com/denisenkom/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
v0.9.0
Published
Nov 3, 2020
Platform
js/wasm
Imports
5 packages
Last checked
39 seconds ago

Tools for package owners.