Sha256: f6ccf517d96dd61f38856615bd5780cdfb996c153928a728ab053958d2bd89c5
Contents?: true
Size: 876 Bytes
Versions: 3
Compression:
Stored size: 876 Bytes
Contents
.TH Allbut .PP Projects a subset of attributes away. .SH Signature .PP .RS .nf allbut(operand: Relation, attributes: AttrList) -> Relation .fi .RE .SH Examples .PP .RS .nf allbut(suppliers, [:city]) .fi .RE .SH Description .PP Computes the relation obtained by removing a subset of attributes from \fB\fCoperand\fR tuples. .PP This operator is the inverse of \fB\fCproject\fR\&. While the latter \fIkeeps\fP attributes, this one \fIremoves\fP them. \fB\fCproject\fR actually supports an allbut variant, which is equivalent to this operator. In other words, this operator can be understood as follows: .PP .RS .nf def allbut(operand, attributes) project(operand, attributes, allbut: true) end allbut(suppliers, [:city, :status]) .fi .RE .SH Implementation notes .PP Unlike SQL, this operator ALWAYS remove duplicates. There is no way, in Alf, to compute \fIbags\fP of tuples.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.16.4 | doc/man/allbut.man |
alf-shell-0.16.0 | doc/man/allbut.man |
alf-shell-0.15.0 | doc/man/allbut.man |