MCPcopy Create free account
hub / github.com/bytebase/bytebase / SplitMultiSQL

Function SplitMultiSQL

backend/plugin/parser/base/interface.go:132–138  ·  view source on GitHub ↗

SplitMultiSQL splits statement into a slice of the single SQL.

(engine storepb.Engine, statement string)

Source from the content-addressed store, hash-verified

130
131// SplitMultiSQL splits statement into a slice of the single SQL.
132func SplitMultiSQL(engine storepb.Engine, statement string) ([]Statement, error) {
133 f, ok := splitters[engine]
134 if !ok {
135 return nil, errors.Errorf("engine %s is not supported", engine)
136 }
137 return f(statement)
138}
139
140// RegisterCompleteFunc registers the completion function for the engine.
141func RegisterCompleteFunc(engine storepb.Engine, f CompletionFunc) {

Callers 15

parseTiDBStatementsOmniFunction · 0.92
ParseTiDBForSyntaxCheckFunction · 0.92
ExecuteMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
QueryConnMethod · 0.92
ExecuteMethod · 0.92

Calls 2

fFunction · 0.85
ErrorfMethod · 0.80