-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
- Feature
- Bug Request
Description
there are a number of nuances with a WHERE clause in a query that take some work to account for.
This library should include some utility functions to aid in working with the library. Below is a list of ideas that need to be considered and vetted out.
- (Compose) Get correctly formatted
Operatorbased on field type and operator type- Based on the field type, the field may need to be wrapped in
'(not the case for non-string types or date literals).NON_STRING_TYPES = ['double', 'boolean', 'datetime', 'date', 'int', 'currency', 'percent'];- example might be
getFormattedCondition(field: string, operator: Operator, type: LiteralType, logicalPrefix?: boolean): Condition- this would only apply to types that do not use functions or semi-join queries.
- Based on the field type, the field may need to be wrapped in
- (compose) Add subquery to query.
- Given a query and subquery, add to the subquery to the query (update field and add to array)
(Others TBD)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request