MCPcopy Create free account
hub / github.com/cloudspannerecosystem/spanner-cli / separateInput

Function separateInput

separator.go:33–43  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

31}
32
33func separateInput(input string) []inputStatement {
34 var result []inputStatement
35 for _, stmt := range gsqlsep.SeparateInputPreserveComments(input, delimiterVertical) {
36 result = append(result, inputStatement{
37 statement: stmt.Statement,
38 statementWithoutComments: stmt.StripComments().Statement,
39 delim: stmt.Terminator,
40 })
41 }
42 return result
43}

Callers 3

TestSeparateInputFunction · 0.85
readInteractiveInputFunction · 0.85
buildCommandsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSeparateInputFunction · 0.68