MCPcopy
hub / github.com/ent/ent / Desc

Function Desc

dialect/sql/builder.go:2425–2429  ·  view source on GitHub ↗

Desc adds the DESC suffix for the given column.

(column string)

Source from the content-addressed store, hash-verified

2423
2424// Desc adds the DESC suffix for the given column.
2425func Desc(column string) string {
2426 b := &Builder{}
2427 b.Ident(column).WriteString(" DESC")
2428 return b.String()
2429}
2430
2431// DescExpr returns a new expression where the DESC suffix is added.
2432func DescExpr(x Querier) Querier {

Callers 15

DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92
DescFunction · 0.92

Calls 3

IdentMethod · 0.95
StringMethod · 0.95
WriteStringMethod · 0.80

Tested by 2

TestBuilderFunction · 0.56
TestMultipleFromFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…