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

Function findKeywordBefore

backend/plugin/parser/tsql/backup.go:380–388  ·  view source on GitHub ↗
(source, keyword string, before int, after int)

Source from the content-addressed store, hash-verified

378}
379
380func findKeywordBefore(source, keyword string, before int, after int) int {
381 if before > len(source) {
382 before = len(source)
383 }
384 if after < 0 {
385 after = 0
386 }
387 return findKeywordOutsideSQL(source, keyword, after, before, true)
388}
389
390func findKeywordAfter(source, keyword string, start int, end int) int {
391 if start < 0 {

Callers 1

dmlTailStartFunction · 0.85

Calls 1

findKeywordOutsideSQLFunction · 0.85

Tested by

no test coverage detected