Sha256: 8284ad4df7ceb9ae7dfbfd80ac8ae5a007d2aca9d54138a8051de70149233f4a

Contents?: true

Size: 597 Bytes

Versions: 6

Compression:

Stored size: 597 Bytes

Contents

# Rename

Rename attributes

## Signature

rename(operand: Relation, renaming: Renaming) -> Relation

## Examples

rename(suppliers, :sid => :supplier_id, :city => :lives_in)

## Description

Computes the same relation as `operand` expect that some attributes have
been renamed.

## Implementation notes

As of current version, renamings can only be expressed through a Hash
mapping input to output attribute names.

Other ways of specifying renamining will be added in future versions, such
as prefixing, postfixing, renaming through a Proc, etc. Any patch towards
these improvements is welcome.

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alf-shell-0.16.4 doc/txt/rename.txt
alf-shell-0.16.3 doc/txt/rename.txt
alf-shell-0.16.2 doc/txt/rename.txt
alf-shell-0.16.1 doc/txt/rename.txt
alf-shell-0.16.0 doc/txt/rename.txt
alf-shell-0.15.0 doc/txt/rename.txt