2013-08-28 16:17:15 |
Cris Dywan |
bug |
|
|
added bug |
2013-09-04 14:25:30 |
Cris Dywan |
attachment added |
|
A mock API demonstrated on Query https://bugs.launchpad.net/u1db-qt/+bug/1217963/+attachment/3802449/+files/queryfuncs.qml |
|
2014-01-06 13:30:50 |
Nekhelesh Ramananthan |
u1db-qt: status |
New |
Confirmed |
|
2014-01-06 17:33:42 |
Cris Dywan |
description |
The reference implementarion has a feature called transformation functions:
http://pythonhosted.org/u1db/high-level-api.html#index-expressions
lower(index_expression) - lowercase the value
split_words(index_expression) - split the value on whitespace; will act like a list and add multiple entries to the index
number(index_expression, width) - takes an integer value, and turns it into a string, left padded with zeroes, to make it at least as wide as width; or nothing if the field type is not an integer.
bool(index_expression) - takes a boolean value and turns it into ‘0’ if false and ‘1’ if true, or nothing if the field type is not boolean.
combine(index_expression1, index_expression2, ...) - Combine the values of an arbitrary number of sub expressions into a single index. |
The reference implementarion has a feature called transformation functions:
http://pythonhosted.org/u1db/high-level-api.html#index-expressions
lower(index_expression) - lowercase the value
split_words(index_expression) - split the value on whitespace; will act like a list and add multiple entries to the index
number(index_expression, width) - takes an integer value, and turns it into a string, left padded with zeroes, to make it at least as wide as width; or nothing if the field type is not an integer.
bool(index_expression) - takes a boolean value and turns it into ‘0’ if false and ‘1’ if true, or nothing if the field type is not boolean.
combine(index_expression1, index_expression2, ...) - Combine the values of an arbitrary number of sub expressions into a single index.
Semi-related bug 1217963 if it makes sense to align the APIs. |
|
2014-01-06 17:34:04 |
Cris Dywan |
description |
The reference implementarion has a feature called transformation functions:
http://pythonhosted.org/u1db/high-level-api.html#index-expressions
lower(index_expression) - lowercase the value
split_words(index_expression) - split the value on whitespace; will act like a list and add multiple entries to the index
number(index_expression, width) - takes an integer value, and turns it into a string, left padded with zeroes, to make it at least as wide as width; or nothing if the field type is not an integer.
bool(index_expression) - takes a boolean value and turns it into ‘0’ if false and ‘1’ if true, or nothing if the field type is not boolean.
combine(index_expression1, index_expression2, ...) - Combine the values of an arbitrary number of sub expressions into a single index.
Semi-related bug 1217963 if it makes sense to align the APIs. |
The reference implementarion has a feature called transformation functions:
http://pythonhosted.org/u1db/high-level-api.html#index-expressions
lower(index_expression) - lowercase the value
split_words(index_expression) - split the value on whitespace; will act like a list and add multiple entries to the index
number(index_expression, width) - takes an integer value, and turns it into a string, left padded with zeroes, to make it at least as wide as width; or nothing if the field type is not an integer.
bool(index_expression) - takes a boolean value and turns it into ‘0’ if false and ‘1’ if true, or nothing if the field type is not boolean.
combine(index_expression1, index_expression2, ...) - Combine the values of an arbitrary number of sub expressions into a single index.
Semi-related bug 1266529 if it makes sense to align the APIs. |
|
2014-01-06 20:24:31 |
Andrew Hayzen |
bug |
|
|
added subscriber Andrew Hayzen |
2014-03-10 11:18:55 |
Nekhelesh Ramananthan |
u1db-qt: milestone |
|
1.0 |
|
2014-03-10 11:19:11 |
Nekhelesh Ramananthan |
u1db-qt: importance |
Undecided |
Medium |
|
2014-03-10 11:19:14 |
Nekhelesh Ramananthan |
u1db-qt: status |
Confirmed |
Triaged |
|
2014-03-11 16:56:04 |
Launchpad Janitor |
branch linked |
|
lp:~kalikiana/u1db-qt/transformers |
|