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

Function extractMySQLLimit

backend/plugin/db/mysql/query.go:233–239  ·  view source on GitHub ↗
(node ast.Node)

Source from the content-addressed store, hash-verified

231}
232
233func extractMySQLLimit(node ast.Node) int {
234 limit, ok := node.(*ast.IntLit)
235 if !ok {
236 return -1
237 }
238 return int(limit.Value)
239}
240
241func nodeLocOf(node ast.Node) ast.Loc {
242 return mysqlNodeLoc(node)

Callers 1

rewriteMySQLSelectLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected