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

Function SqlFunc

database/sqlbuilder/expression.go:301–317  ·  view source on GitHub ↗

Returns a representation of sql function call "func_call(c[0], ..., c[n-1])

(funcName string, expressions ...Expression)

Source from the content-addressed store, hash-verified

299
300// Returns a representation of sql function call "func_call(c[0], ..., c[n-1])
301func SqlFunc(funcName string, expressions ...Expression) Expression {
302 f := &funcExpression{
303 funcName: funcName,
304 }
305 if len(expressions) > 0 {
306 args := make([]Clause, len(expressions), len(expressions))
307 for i, expr := range expressions {
308 args[i] = expr
309 }
310
311 f.args = &listClause{
312 clauses: args,
313 includeParentheses: true,
314 }
315 }
316 return f
317}
318
319type intervalExpression struct {
320 isExpression

Calls

no outgoing calls