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

Function skipQuotedSQL

backend/plugin/parser/tsql/backup.go:476–489  ·  view source on GitHub ↗
(source string, start, end int, closeCh byte)

Source from the content-addressed store, hash-verified

474}
475
476func skipQuotedSQL(source string, start, end int, closeCh byte) int {
477 i := start + 1
478 for i < end {
479 if source[i] == closeCh {
480 if i+1 < end && source[i+1] == closeCh {
481 i += 2
482 continue
483 }
484 return i + 1
485 }
486 i++
487 }
488 return end
489}
490
491func skipLineComment(source string, start, end int) int {
492 for start < end && source[start] != '\n' {

Callers 1

findKeywordOutsideSQLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected