Sha256: eb33230b93a695299c67e42b19454ee827622b051c221e38597671b5ab677746

Contents?: true

Size: 780 Bytes

Versions: 3

Compression:

Stored size: 780 Bytes

Contents

.TH Project
.PP
Keeps only a subset of attributes.
.SH Signature
.PP
.RS
.nf
project(operand: Relation, attributes: AttrList) \-> Relation
.fi
.RE
.SH Examples
.PP
.RS
.nf
project(suppliers, [:city])
.fi
.RE
.PP
.RS
.nf
project(suppliers, [:city], allbut: true)
.fi
.RE
.SH Description
.PP
Computes the relation obtained by projecting tuples from \fB\fCoperand\fR on a
subset of their attributes.
.PP
This operator supports an ALL BUT variant, through the \fB\fCallbut\fR option.
When set to true, the operator \fIremoves\fP specified attributes instead of
keeping them. An \fB\fCallbut\fR operator is also provided that has the same
effect.
.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.3 doc/man/project.man
alf-shell-0.16.2 doc/man/project.man
alf-shell-0.16.1 doc/man/project.man