compare

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareRecords

func CompareRecords(ctx *sql.Context, op framework.Operator, v1 interface{}, v2 interface{}) (res any, err error)

CompareRecords compares two record values using the specified comparison operator, |op| and returns a result indicating if the comparison was true or false.

More info on rules for comparing records: https://www.postgresql.org/docs/current/functions-comparisons.html#COMPOSITE-TYPE-COMPARISON

func RecordsAreDistinct added in v1.4.0

func RecordsAreDistinct(ctx *sql.Context, v1 interface{}, v2 interface{}) (bool, error)

RecordsAreDistinct returns whether two records differ in any field, with NULL fields only equal to each other.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL