MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / EndsInSemicolon

Function EndsInSemicolon

pkg/sql/parser/scan.go:1018–1021  ·  view source on GitHub ↗

EndsInSemicolon returns true if the last lexical token is a semicolon.

(sql string)

Source from the content-addressed store, hash-verified

1016
1017// EndsInSemicolon returns true if the last lexical token is a semicolon.
1018func EndsInSemicolon(sql string) bool {
1019 lastTok, ok := LastLexicalToken(sql)
1020 return ok && lastTok == ';'
1021}

Callers

nothing calls this directly

Calls 1

LastLexicalTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…