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

Function IsDataChangingStatement

backend/plugin/parser/trino/query_type.go:99–102  ·  view source on GitHub ↗

IsDataChangingStatement reports whether the node is a DML statement.

(node ast.Node)

Source from the content-addressed store, hash-verified

97
98// IsDataChangingStatement reports whether the node is a DML statement.
99func IsDataChangingStatement(node ast.Node) bool {
100 queryType, _ := getQueryType(node)
101 return queryType == base.DML
102}
103
104// IsSchemaChangingStatement reports whether the node is a DDL statement.
105func IsSchemaChangingStatement(node ast.Node) bool {

Callers 2

TestTrinoParserFunction · 0.85

Calls 1

getQueryTypeFunction · 0.70

Tested by 2

TestTrinoParserFunction · 0.68