MCPcopy Index your code
hub / github.com/dropbox/godropbox / Sub

Function Sub

database/sqlbuilder/expression.go:417–422  ·  view source on GitHub ↗

Returns a representation of "c[0] - ... - c[n-1]" for c in clauses

(expressions ...Expression)

Source from the content-addressed store, hash-verified

415
416// Returns a representation of "c[0] - ... - c[n-1]" for c in clauses
417func Sub(expressions ...Expression) Expression {
418 return &arithmeticExpression{
419 expressions: expressions,
420 operator: []byte(" - "),
421 }
422}
423
424// Returns a representation of "c[0] * ... * c[n-1]" for c in clauses
425func Mul(expressions ...Expression) Expression {

Callers 1

TestSubExprMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestSubExprMethod · 0.68