MCPcopy
hub / github.com/dropbox/godropbox / Add

Function Add

database/sqlbuilder/expression.go:409–414  ·  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

407
408// Returns a representation of "c[0] + ... + c[n-1]" for c in clauses
409func Add(expressions ...Expression) Expression {
410 return &arithmeticExpression{
411 expressions: expressions,
412 operator: []byte(" + "),
413 }
414}
415
416// Returns a representation of "c[0] - ... - c[n-1]" for c in clauses
417func Sub(expressions ...Expression) Expression {

Callers 1

TestAddExprMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestAddExprMethod · 0.68