Sha256: 4cfd8a6a740e21e5e6ccb0243aa5e5905b2429363373e838660d6375ce55306b
Contents?: true
Size: 749 Bytes
Versions: 2
Compression:
Stored size: 749 Bytes
Contents
.TH Restrict .PP Predicate\-based filtering .SH Signature .PP .RS .nf restrict(operand: Relation, predicate: Predicate) -> Relation .fi .RE .SH Examples .PP .RS .nf restrict(suppliers, city: 'Paris', status: 20) .fi .RE .PP .RS .nf restrict(suppliers, eq(city: 'Paris') & gt(:status, 20)) .fi .RE .PP .RS .nf restrict(suppliers, ->(t){ t.city == 'Paris' and t.status > 20 }) .fi .RE .SH Description .PP Computes a relation as a subset of \fB\fCoperand\fR tuples for which a tuple predicate evaluates to TRUE. .SH Implementation notes .PP As of current Alf version, native predicates (through ruby \fB\fCProc\fR objects) cannot be optimized nor compiled to SQL. The use of predicate factories (\fB\fCeq\fR, \fB\fCgt\fR, etc.) is strongly recommended.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.16.4 | doc/man/restrict.man |
alf-shell-0.16.0 | doc/man/restrict.man |