hash. Transforming a table into hash with specified keys
|
· | [string]-name of column, whose value will be regarded as key;
|
· | {code}-code, whose result will be regarded as key;
|
· | (mathematical expression)-whose result will be regarded as key.
|
$.type[hash/string/table]
[3.2.2] |
hash=each hash item contain hash (default);
string=each hash item contain string. You must specify one column_of_values; table=each element containing table. Using this option you can't specify column_of_values or table_with_column_of_values. This made for save memory because of tables in resulting hash just have links to tables' rows which already exist in memory. |
$.distinct(true/false)
|
false=identical values in key column are considered error (default);
true=get identical values from key column. |
$.distinct[tables]
[3.0.8] |
make up hash of tables containing rows with key.
Deprecated option which do the same as $.distinct(1) and $.type[table] if they specified together. |
Copyright © 19972021 Art. Lebedev Studio | http://www.artlebedev.com | Last updated: 26.04.2017 |