MCPcopy Create free account
hub / github.com/dolthub/doltgresql / OperationSizeForStatements

Function OperationSizeForStatements

server/plpgsql/statements.go:452–458  ·  view source on GitHub ↗

OperationSizeForStatements returns the sum of OperationSize for every statement.

(stmts []Statement)

Source from the content-addressed store, hash-verified

450
451// OperationSizeForStatements returns the sum of OperationSize for every statement.
452func OperationSizeForStatements(stmts []Statement) int32 {
453 total := int32(0)
454 for _, stmt := range stmts {
455 total += stmt.OperationSize()
456 }
457 return total
458}
459
460// substituteVariableReferences parses the specified |expression| and replaces
461// any token that matches a variable name in the |stack| with "$N", where N

Callers 5

ConvertMethod · 0.85
ConvertMethod · 0.85
ConvertMethod · 0.85
ConvertMethod · 0.85
ConvertMethod · 0.85

Calls 1

OperationSizeMethod · 0.65

Tested by

no test coverage detected