Documentation
¶
Overview ¶
Package match compiles a query.Where (fabriq's engine-neutral filter AST) into a Go predicate evaluated against a column-keyed map. It is the hot-path twin of the SQL the postgres adapter generates from the same Where, so a live query's membership test and its snapshot/refill SQL share one source of truth. The matchtest parity suite asserts Go-eval ≡ Postgres WHERE.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Predicate ¶
type Predicate struct {
// contains filtered or unexported fields
}
Predicate evaluates a compiled filter against a column-keyed row.
Click to show internal directories.
Click to hide internal directories.