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

Method BaseLine

backend/plugin/parser/base/statement.go:28–33  ·  view source on GitHub ↗

BaseLine returns the 0-based line number of the first line of the SQL. This is derived from Start.Line - 1 and is used for advisor code compatibility.

()

Source from the content-addressed store, hash-verified

26// BaseLine returns the 0-based line number of the first line of the SQL.
27// This is derived from Start.Line - 1 and is used for advisor code compatibility.
28func (s *Statement) BaseLine() int {
29 if s.Start == nil {
30 return 0
31 }
32 return int(s.Start.Line) - 1
33}
34
35// NewStatementFromRange builds a Statement from a split segment range.
36func NewStatementFromRange(sql string, mapper *ByteOffsetPositionMapper, byteStart, byteEnd int, empty bool) Statement {

Callers 15

assertStatementsEqualFunction · 0.80
recordTestResultsFunction · 0.80
parseSnowflakeStatementsFunction · 0.80
CheckMethod · 0.80
CheckMethod · 0.80
CheckMethod · 0.80

Calls

no outgoing calls