MCPcopy
hub / github.com/Masterminds/squirrel / OrderBy

Method OrderBy

select.go:367–373  ·  view source on GitHub ↗

OrderBy adds ORDER BY expressions to the query.

(orderBys ...string)

Source from the content-addressed store, hash-verified

365
366// OrderBy adds ORDER BY expressions to the query.
367func (b SelectBuilder) OrderBy(orderBys ...string) SelectBuilder {
368 for _, orderBy := range orderBys {
369 b = b.OrderByClause(orderBy)
370 }
371
372 return b
373}
374
375// Limit sets a LIMIT clause on the query.
376func (b SelectBuilder) Limit(limit uint64) SelectBuilder {

Callers

nothing calls this directly

Calls 1

OrderByClauseMethod · 0.95

Tested by

no test coverage detected