Skip to content

SQL: new transform() method to transform the element of a collection #1031

Description

@lvca

It would be nice to have a quick way to transform the element in a collection (list or set), like testing all the elements in a collection match, in a case insensitive way.

Example:

SELECT FROM Car WHERE options.transform( 'toLowercase' ) CONTAINSALL ['a/c', 'airbags']

The transform will call the toLowerCase method against all the elements in the options collection. This should work in chain too, like in the previous example, but removing the first character:

SELECT FROM Car WHERE options.transform( 'trim', 'toLowercase' ) CONTAINSALL ['a/c', 'airbags']

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions