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

Function isRestorableDML

backend/plugin/parser/tsql/restore.go:414–421  ·  view source on GitHub ↗
(node ast.Node)

Source from the content-addressed store, hash-verified

412}
413
414func isRestorableDML(node ast.Node) bool {
415 switch node.(type) {
416 case *ast.UpdateStmt, *ast.DeleteStmt:
417 return true
418 default:
419 return false
420 }
421}
422
423func statementPositions(start *storepb.Position, source string, loc ast.Loc) (*storepb.Position, *storepb.Position) {
424 return positionFromByteOffset(start, source, loc.Start), positionFromByteOffset(start, source, dmlEndOffset(source, loc))

Callers 2

GenerateRestoreSQLFunction · 0.85
extractStatementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected