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

Method Next

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

Next implements the Datum interface.

(_ *EvalContext)

Source from the content-addressed store, hash-verified

1512
1513// Next implements the Datum interface.
1514func (d *DUuid) Next(_ *EvalContext) (Datum, bool) {
1515 i := d.ToUint128()
1516 u := uuid.FromUint128(i.Add(1))
1517 return NewDUuid(DUuid{u}), true
1518}
1519
1520// IsMax implements the Datum interface.
1521func (d *DUuid) IsMax(_ *EvalContext) bool {

Callers

nothing calls this directly

Calls 4

FromUint128Function · 0.92
NewDUuidFunction · 0.85
ToUint128Method · 0.80
AddMethod · 0.65

Tested by

no test coverage detected