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

Function findKeywordAfter

backend/plugin/parser/tsql/backup.go:390–398  ·  view source on GitHub ↗
(source, keyword string, start int, end int)

Source from the content-addressed store, hash-verified

388}
389
390func findKeywordAfter(source, keyword string, start int, end int) int {
391 if start < 0 {
392 start = 0
393 }
394 if end > len(source) {
395 end = len(source)
396 }
397 return findKeywordOutsideSQL(source, keyword, start, end, false)
398}
399
400func findKeywordOutsideSQL(source, keyword string, start, end int, last bool) int {
401 if start >= end {

Callers 1

dmlTailStartFunction · 0.85

Calls 1

findKeywordOutsideSQLFunction · 0.85

Tested by

no test coverage detected