Implement transformation functions

Bug #1217963 reported by Cris Dywan
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

The reference implementarion has a feature called transformation functions:

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.

Revision history for this message
Cris Dywan (kalikiana) wrote :
Changed in u1db-qt:
status: New → Confirmed
Cris Dywan (kalikiana)
description: updated
description: updated
Changed in u1db-qt:
milestone: none → 1.0
importance: Undecided → Medium
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers