Module

Query Utils

Methods

# static fixGroupBy(query, coarse_grain) → {*}

Replaces "group by" for "group every $coarse_grain by"

Parameters:
Name Type Description
query
coarse_grain

coarse grain used

View Source libs/queryutils.js, line 13

*

# static fixInts(query) → {*}

Translates int4, int8 to int

Parameters:
Name Type Description
query

View Source libs/queryutils.js, line 52

*

# static fixLimit(query) → {*}

Removes limit clauses that don't apply on loxcope

Parameters:
Name Type Description
query

View Source libs/queryutils.js, line 61

*

# static fixLookupList(query) → {*}

Removes the domain in a query to a lookup

Parameters:
Name Type Description
query

View Source libs/queryutils.js, line 70

*

# static fixLookups(query) → {*}

Translates lookups from the backend syntax to the loxcope one

Parameters:
Name Type Description
query

View Source libs/queryutils.js, line 42

*

# static fixMidnight(query, coarse_grain) → {*}

Replaces "group by" for "group every $coarse_grain by"

Parameters:
Name Type Description
query
coarse_grain

coarse grain used

View Source libs/queryutils.js, line 24

*

# static fixQueryForLoxcope(query, additionalFixes) → {*}

Adapts a query from the backend syntax to the loxcope one by making several changes to it.

Parameters:
Name Type Description
query
additionalFixes

More custom fixes if needed

View Source libs/queryutils.js, line 90

*

# static fixSelectAll(query) → {*}

Removes select * clause in a query

Parameters:
Name Type Description
query

View Source libs/queryutils.js, line 79

*

# static removePragmas(query) → {*}

Removes pragmas

Parameters:
Name Type Description
query

View Source libs/queryutils.js, line 33

*