MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Compare

Method Compare

pkg/sql/sem/tree/datum.go:81–81  ·  view source on GitHub ↗

Compare returns -1 if the receiver is less than other, 0 if receiver is equal to other and +1 if receiver is greater than other.

(ctx *EvalContext, other Datum)

Source from the content-addressed store, hash-verified

79 // Compare returns -1 if the receiver is less than other, 0 if receiver is
80 // equal to other and +1 if receiver is greater than other.
81 Compare(ctx *EvalContext, other Datum) int
82
83 // Prev returns the previous datum and true, if one exists, or nil and false.
84 // The previous datum satisfies the following definition: if the receiver is

Callers 15

normalizeMethod · 0.65
CompareMethod · 0.65
IsDistinctFromMethod · 0.65
CompareMethod · 0.65
CompareMethod · 0.65
CompareMethod · 0.65
CompareMethod · 0.65
CompareMethod · 0.65
CompareMethod · 0.65
CompareMethod · 0.65
CompareMethod · 0.65
CompareMethod · 0.65

Implementers 15

DTuplepkg/sql/sem/tree/datum.go
DArraypkg/sql/sem/tree/datum.go
DBitArraypkg/sql/sem/tree/datum.go
DDecimalpkg/sql/sem/tree/datum.go
DCollatedStringpkg/sql/sem/tree/datum.go
DUuidpkg/sql/sem/tree/datum.go
DIPAddrpkg/sql/sem/tree/datum.go
DDatepkg/sql/sem/tree/datum.go
DTimeTZpkg/sql/sem/tree/datum.go
DTimestamppkg/sql/sem/tree/datum.go
DTimestampTZpkg/sql/sem/tree/datum.go
DIntervalpkg/sql/sem/tree/datum.go

Calls

no outgoing calls

Tested by

no test coverage detected