@uwdata/mosaic-sql 0.16.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +0 -2
- package/dist/src/ast/aggregate.d.ts +82 -0
- package/dist/src/ast/aggregate.d.ts.map +1 -0
- package/dist/src/ast/aggregate.js +180 -0
- package/dist/src/ast/aggregate.js.map +1 -0
- package/dist/src/ast/between-op.d.ts +46 -0
- package/dist/src/ast/between-op.d.ts.map +1 -0
- package/dist/src/ast/between-op.js +60 -0
- package/dist/src/ast/between-op.js.map +1 -0
- package/dist/src/ast/binary-op.d.ts +21 -0
- package/dist/src/ast/binary-op.d.ts.map +1 -0
- package/dist/src/ast/binary-op.js +29 -0
- package/dist/src/ast/binary-op.js.map +1 -0
- package/dist/src/ast/case.d.ts +53 -0
- package/dist/src/ast/case.d.ts.map +1 -0
- package/dist/src/ast/case.js +75 -0
- package/dist/src/ast/case.js.map +1 -0
- package/dist/src/ast/cast.d.ts +18 -0
- package/dist/src/ast/cast.d.ts.map +1 -0
- package/dist/src/ast/cast.js +26 -0
- package/dist/src/ast/cast.js.map +1 -0
- package/dist/src/ast/collate.d.ts +18 -0
- package/dist/src/ast/collate.d.ts.map +1 -0
- package/dist/src/ast/collate.js +25 -0
- package/dist/src/ast/collate.js.map +1 -0
- package/dist/src/ast/column-param.d.ts +23 -0
- package/dist/src/ast/column-param.d.ts.map +1 -0
- package/dist/src/ast/column-param.js +29 -0
- package/dist/src/ast/column-param.js.map +1 -0
- package/dist/src/ast/column-ref.d.ts +40 -0
- package/dist/src/ast/column-ref.d.ts.map +1 -0
- package/dist/src/ast/column-ref.js +58 -0
- package/dist/src/ast/column-ref.js.map +1 -0
- package/dist/src/ast/fragment.d.ts +20 -0
- package/dist/src/ast/fragment.d.ts.map +1 -0
- package/dist/src/ast/fragment.js +26 -0
- package/dist/src/ast/fragment.js.map +1 -0
- package/dist/src/ast/from.d.ts +22 -0
- package/dist/src/ast/from.d.ts.map +1 -0
- package/dist/src/ast/from.js +37 -0
- package/dist/src/ast/from.js.map +1 -0
- package/dist/src/ast/function.d.ts +18 -0
- package/dist/src/ast/function.d.ts.map +1 -0
- package/dist/src/ast/function.js +26 -0
- package/dist/src/ast/function.js.map +1 -0
- package/dist/src/ast/in-op.d.ts +18 -0
- package/dist/src/ast/in-op.d.ts.map +1 -0
- package/dist/src/ast/in-op.js +25 -0
- package/dist/src/ast/in-op.js.map +1 -0
- package/dist/src/ast/interval.d.ts +18 -0
- package/dist/src/ast/interval.d.ts.map +1 -0
- package/dist/src/ast/interval.js +25 -0
- package/dist/src/ast/interval.js.map +1 -0
- package/dist/src/ast/literal.d.ts +16 -0
- package/dist/src/ast/literal.d.ts.map +1 -0
- package/dist/src/ast/literal.js +53 -0
- package/dist/src/ast/literal.js.map +1 -0
- package/dist/src/ast/logical-op.d.ts +32 -0
- package/dist/src/ast/logical-op.d.ts.map +1 -0
- package/dist/src/ast/logical-op.js +46 -0
- package/dist/src/ast/logical-op.js.map +1 -0
- package/dist/src/ast/node.d.ts +25 -0
- package/dist/src/ast/node.d.ts.map +1 -0
- package/dist/src/ast/node.js +36 -0
- package/dist/src/ast/node.js.map +1 -0
- package/dist/src/ast/order-by.d.ts +21 -0
- package/dist/src/ast/order-by.d.ts.map +1 -0
- package/dist/src/ast/order-by.js +36 -0
- package/dist/src/ast/order-by.js.map +1 -0
- package/dist/{types → src}/ast/param.d.ts +11 -11
- package/dist/src/ast/param.d.ts.map +1 -0
- package/dist/src/ast/param.js +28 -0
- package/dist/src/ast/param.js.map +1 -0
- package/dist/src/ast/query.d.ts +294 -0
- package/dist/src/ast/query.d.ts.map +1 -0
- package/dist/src/ast/query.js +584 -0
- package/dist/src/ast/query.js.map +1 -0
- package/dist/src/ast/sample.d.ts +27 -0
- package/dist/src/ast/sample.d.ts.map +1 -0
- package/dist/src/ast/sample.js +38 -0
- package/dist/src/ast/sample.js.map +1 -0
- package/dist/src/ast/select.d.ts +19 -0
- package/dist/src/ast/select.d.ts.map +1 -0
- package/dist/src/ast/select.js +35 -0
- package/dist/src/ast/select.js.map +1 -0
- package/dist/src/ast/subquery.d.ts +16 -0
- package/dist/src/ast/subquery.d.ts.map +1 -0
- package/dist/src/ast/subquery.js +21 -0
- package/dist/src/ast/subquery.js.map +1 -0
- package/dist/src/ast/table-ref.d.ts +24 -0
- package/dist/src/ast/table-ref.d.ts.map +1 -0
- package/dist/src/ast/table-ref.js +35 -0
- package/dist/src/ast/table-ref.js.map +1 -0
- package/dist/src/ast/unary-op.d.ts +40 -0
- package/dist/src/ast/unary-op.d.ts.map +1 -0
- package/dist/src/ast/unary-op.js +52 -0
- package/dist/src/ast/unary-op.js.map +1 -0
- package/dist/src/ast/verbatim.d.ts +18 -0
- package/dist/src/ast/verbatim.d.ts.map +1 -0
- package/dist/src/ast/verbatim.js +25 -0
- package/dist/src/ast/verbatim.js.map +1 -0
- package/dist/src/ast/window-frame.d.ts +54 -0
- package/dist/src/ast/window-frame.d.ts.map +1 -0
- package/dist/src/ast/window-frame.js +79 -0
- package/dist/src/ast/window-frame.js.map +1 -0
- package/dist/src/ast/window.d.ts +128 -0
- package/dist/src/ast/window.d.ts.map +1 -0
- package/dist/src/ast/window.js +194 -0
- package/dist/src/ast/window.js.map +1 -0
- package/dist/{types → src}/ast/with.d.ts +15 -22
- package/dist/src/ast/with.d.ts.map +1 -0
- package/dist/src/ast/with.js +36 -0
- package/dist/src/ast/with.js.map +1 -0
- package/dist/src/constants.d.ts +38 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +38 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/functions/aggregate.d.ts +236 -0
- package/dist/src/functions/aggregate.d.ts.map +1 -0
- package/dist/src/functions/aggregate.js +308 -0
- package/dist/src/functions/aggregate.js.map +1 -0
- package/dist/{types → src}/functions/case.d.ts +7 -7
- package/dist/src/functions/case.d.ts.map +1 -0
- package/dist/src/functions/case.js +17 -0
- package/dist/src/functions/case.js.map +1 -0
- package/dist/src/functions/cast.d.ts +23 -0
- package/dist/src/functions/cast.d.ts.map +1 -0
- package/dist/src/functions/cast.js +32 -0
- package/dist/src/functions/cast.js.map +1 -0
- package/dist/src/functions/collate.d.ts +10 -0
- package/dist/src/functions/collate.d.ts.map +1 -0
- package/dist/src/functions/collate.js +12 -0
- package/dist/src/functions/collate.js.map +1 -0
- package/dist/src/functions/column.d.ts +10 -0
- package/dist/src/functions/column.d.ts.map +1 -0
- package/dist/src/functions/column.js +17 -0
- package/dist/src/functions/column.js.map +1 -0
- package/dist/{types → src}/functions/cte.d.ts +7 -7
- package/dist/src/functions/cte.d.ts.map +1 -0
- package/dist/src/functions/cte.js +14 -0
- package/dist/src/functions/cte.js.map +1 -0
- package/dist/src/functions/datetime.d.ts +32 -0
- package/dist/src/functions/datetime.d.ts.map +1 -0
- package/dist/src/functions/datetime.js +45 -0
- package/dist/src/functions/datetime.js.map +1 -0
- package/dist/src/functions/interval.d.ts +48 -0
- package/dist/src/functions/interval.d.ts.map +1 -0
- package/dist/src/functions/interval.js +66 -0
- package/dist/src/functions/interval.js.map +1 -0
- package/dist/{types → src}/functions/literal.d.ts +8 -8
- package/dist/src/functions/literal.d.ts.map +1 -0
- package/dist/src/functions/literal.js +20 -0
- package/dist/src/functions/literal.js.map +1 -0
- package/dist/src/functions/numeric.d.ts +80 -0
- package/dist/src/functions/numeric.d.ts.map +1 -0
- package/dist/src/functions/numeric.js +110 -0
- package/dist/src/functions/numeric.js.map +1 -0
- package/dist/src/functions/operators.d.ts +169 -0
- package/dist/src/functions/operators.d.ts.map +1 -0
- package/dist/src/functions/operators.js +235 -0
- package/dist/src/functions/operators.js.map +1 -0
- package/dist/src/functions/order-by.d.ts +15 -0
- package/dist/src/functions/order-by.d.ts.map +1 -0
- package/dist/src/functions/order-by.js +19 -0
- package/dist/src/functions/order-by.js.map +1 -0
- package/dist/src/functions/spatial.d.ts +32 -0
- package/dist/src/functions/spatial.d.ts.map +1 -0
- package/dist/src/functions/spatial.js +44 -0
- package/dist/src/functions/spatial.js.map +1 -0
- package/dist/{types → src}/functions/sql-template-tag.d.ts +8 -10
- package/dist/src/functions/sql-template-tag.d.ts.map +1 -0
- package/dist/src/functions/sql-template-tag.js +44 -0
- package/dist/src/functions/sql-template-tag.js.map +1 -0
- package/dist/src/functions/string.d.ts +49 -0
- package/dist/src/functions/string.d.ts.map +1 -0
- package/dist/src/functions/string.js +67 -0
- package/dist/src/functions/string.js.map +1 -0
- package/dist/src/functions/table-ref.d.ts +10 -0
- package/dist/src/functions/table-ref.d.ts.map +1 -0
- package/dist/src/functions/table-ref.js +13 -0
- package/dist/src/functions/table-ref.js.map +1 -0
- package/dist/src/functions/util.d.ts +7 -0
- package/dist/src/functions/util.d.ts.map +1 -0
- package/dist/src/functions/util.js +9 -0
- package/dist/src/functions/util.js.map +1 -0
- package/dist/src/functions/window-frame.d.ts +41 -0
- package/dist/src/functions/window-frame.d.ts.map +1 -0
- package/dist/src/functions/window-frame.js +52 -0
- package/dist/src/functions/window-frame.js.map +1 -0
- package/dist/{types → src}/functions/window.d.ts +24 -39
- package/dist/src/functions/window.d.ts.map +1 -0
- package/dist/src/functions/window.js +96 -0
- package/dist/src/functions/window.js.map +1 -0
- package/dist/src/index.d.ts +69 -0
- package/dist/src/index.d.ts.map +1 -0
- package/{src → dist/src}/index.js +16 -12
- package/dist/src/index.js.map +1 -0
- package/dist/src/load/create.d.ts +10 -0
- package/dist/src/load/create.d.ts.map +1 -0
- package/dist/src/load/create.js +14 -0
- package/dist/src/load/create.js.map +1 -0
- package/dist/src/load/extension.d.ts +2 -0
- package/dist/src/load/extension.d.ts.map +1 -0
- package/dist/src/load/extension.js +4 -0
- package/dist/src/load/extension.js.map +1 -0
- package/dist/src/load/load.d.ts +18 -0
- package/dist/src/load/load.d.ts.map +1 -0
- package/dist/src/load/load.js +80 -0
- package/dist/src/load/load.js.map +1 -0
- package/dist/src/load/sql-from.d.ts +14 -0
- package/dist/src/load/sql-from.d.ts.map +1 -0
- package/dist/src/load/sql-from.js +29 -0
- package/dist/src/load/sql-from.js.map +1 -0
- package/dist/src/transforms/bin-1d.d.ts +16 -0
- package/dist/src/transforms/bin-1d.d.ts.map +1 -0
- package/dist/src/transforms/bin-1d.js +21 -0
- package/dist/src/transforms/bin-1d.js.map +1 -0
- package/dist/src/transforms/bin-2d.d.ts +19 -0
- package/dist/src/transforms/bin-2d.d.ts.map +1 -0
- package/dist/src/transforms/bin-2d.js +27 -0
- package/dist/src/transforms/bin-2d.js.map +1 -0
- package/dist/src/transforms/bin-date.d.ts +31 -0
- package/dist/src/transforms/bin-date.d.ts.map +1 -0
- package/dist/src/transforms/bin-date.js +20 -0
- package/dist/src/transforms/bin-date.js.map +1 -0
- package/dist/src/transforms/bin-histogram.d.ts +37 -0
- package/dist/src/transforms/bin-histogram.d.ts.map +1 -0
- package/dist/src/transforms/bin-histogram.js +32 -0
- package/dist/src/transforms/bin-histogram.js.map +1 -0
- package/dist/src/transforms/bin-linear-1d.d.ts +11 -0
- package/dist/src/transforms/bin-linear-1d.d.ts.map +1 -0
- package/dist/src/transforms/bin-linear-1d.js +25 -0
- package/dist/src/transforms/bin-linear-1d.js.map +1 -0
- package/dist/src/transforms/bin-linear-2d.d.ts +20 -0
- package/dist/src/transforms/bin-linear-2d.d.ts.map +1 -0
- package/dist/src/transforms/bin-linear-2d.js +49 -0
- package/dist/src/transforms/bin-linear-2d.js.map +1 -0
- package/dist/src/transforms/filter-query.d.ts +12 -0
- package/dist/src/transforms/filter-query.d.ts.map +1 -0
- package/dist/src/transforms/filter-query.js +39 -0
- package/dist/src/transforms/filter-query.js.map +1 -0
- package/dist/src/transforms/line-density.d.ts +24 -0
- package/dist/src/transforms/line-density.d.ts.map +1 -0
- package/dist/src/transforms/line-density.js +98 -0
- package/dist/src/transforms/line-density.js.map +1 -0
- package/dist/src/transforms/m4.d.ts +19 -0
- package/dist/src/transforms/m4.d.ts.map +1 -0
- package/dist/src/transforms/m4.js +38 -0
- package/dist/src/transforms/m4.js.map +1 -0
- package/dist/src/transforms/scales.d.ts +30 -0
- package/dist/src/transforms/scales.d.ts.map +1 -0
- package/dist/src/transforms/scales.js +103 -0
- package/dist/src/transforms/scales.js.map +1 -0
- package/dist/src/transforms/util/bin-step.d.ts +50 -0
- package/dist/src/transforms/util/bin-step.d.ts.map +1 -0
- package/dist/src/transforms/util/bin-step.js +53 -0
- package/dist/src/transforms/util/bin-step.js.map +1 -0
- package/dist/src/transforms/util/time-interval.d.ts +14 -0
- package/dist/src/transforms/util/time-interval.d.ts.map +1 -0
- package/dist/src/transforms/util/time-interval.js +88 -0
- package/dist/src/transforms/util/time-interval.js.map +1 -0
- package/dist/{types → src}/types.d.ts +6 -19
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -0
- package/dist/{types → src}/util/ast.d.ts +26 -25
- package/dist/src/util/ast.d.ts.map +1 -0
- package/{src → dist/src}/util/ast.js +36 -41
- package/dist/src/util/ast.js.map +1 -0
- package/dist/src/util/function.d.ts +56 -0
- package/dist/src/util/function.d.ts.map +1 -0
- package/dist/src/util/function.js +73 -0
- package/dist/src/util/function.js.map +1 -0
- package/dist/src/util/identity.d.ts +6 -0
- package/dist/src/util/identity.d.ts.map +1 -0
- package/dist/src/util/identity.js +8 -0
- package/dist/src/util/identity.js.map +1 -0
- package/dist/src/util/string.d.ts +4 -0
- package/dist/src/util/string.d.ts.map +1 -0
- package/dist/src/util/string.js +14 -0
- package/dist/src/util/string.js.map +1 -0
- package/dist/src/util/type-check.d.ts +17 -0
- package/dist/src/util/type-check.d.ts.map +1 -0
- package/dist/src/util/type-check.js +28 -0
- package/dist/src/util/type-check.js.map +1 -0
- package/dist/src/visit/clone.d.ts +7 -0
- package/dist/src/visit/clone.d.ts.map +1 -0
- package/dist/src/visit/clone.js +52 -0
- package/dist/src/visit/clone.js.map +1 -0
- package/dist/src/visit/recurse.d.ts +2 -0
- package/dist/src/visit/recurse.d.ts.map +1 -0
- package/dist/src/visit/recurse.js +36 -0
- package/dist/src/visit/recurse.js.map +1 -0
- package/dist/src/visit/rewrite.d.ts +9 -0
- package/dist/src/visit/rewrite.d.ts.map +1 -0
- package/dist/src/visit/rewrite.js +39 -0
- package/dist/src/visit/rewrite.js.map +1 -0
- package/dist/{types → src}/visit/visitors.d.ts +14 -16
- package/dist/src/visit/visitors.d.ts.map +1 -0
- package/dist/src/visit/visitors.js +95 -0
- package/dist/src/visit/visitors.js.map +1 -0
- package/dist/src/visit/walk.d.ts +21 -0
- package/dist/src/visit/walk.d.ts.map +1 -0
- package/dist/src/visit/walk.js +32 -0
- package/dist/src/visit/walk.js.map +1 -0
- package/package.json +12 -10
- package/src/ast/aggregate.ts +198 -0
- package/src/ast/{between-op.js → between-op.ts} +19 -26
- package/src/ast/binary-op.ts +31 -0
- package/src/ast/{case.js → case.ts} +29 -44
- package/src/ast/{cast.js → cast.ts} +8 -14
- package/src/ast/collate.ts +27 -0
- package/src/ast/column-param.ts +34 -0
- package/src/ast/{column-ref.js → column-ref.ts} +16 -25
- package/src/ast/fragment.ts +28 -0
- package/src/ast/from.ts +40 -0
- package/src/ast/{function.js → function.ts} +8 -14
- package/src/ast/{in-op.js → in-op.ts} +8 -14
- package/src/ast/{interval.js → interval.ts} +8 -14
- package/src/ast/{literal.js → literal.ts} +6 -9
- package/src/ast/logical-op.ts +50 -0
- package/src/ast/node.ts +39 -0
- package/src/ast/order-by.ts +38 -0
- package/src/ast/{param.js → param.ts} +6 -12
- package/src/ast/{query.js → query.ts} +193 -205
- package/src/ast/sample.ts +47 -0
- package/src/ast/{select.js → select.ts} +10 -16
- package/src/ast/subquery.ts +24 -0
- package/src/ast/{table-ref.js → table-ref.ts} +7 -12
- package/src/ast/{unary-op.js → unary-op.ts} +16 -23
- package/src/ast/{verbatim.js → verbatim.ts} +9 -8
- package/src/ast/window-frame.ts +97 -0
- package/src/ast/window.ts +246 -0
- package/src/ast/{with.js → with.ts} +19 -20
- package/src/{constants.js → constants.ts} +5 -6
- package/src/functions/aggregate.ts +344 -0
- package/src/functions/{case.js → case.ts} +5 -8
- package/src/functions/{cast.js → cast.ts} +9 -13
- package/src/functions/collate.ts +13 -0
- package/src/functions/{column.js → column.ts} +9 -10
- package/src/functions/{cte.js → cte.ts} +9 -6
- package/src/functions/datetime.ts +50 -0
- package/src/functions/interval.ts +74 -0
- package/src/functions/{literal.js → literal.ts} +6 -7
- package/src/functions/numeric.ts +125 -0
- package/src/functions/operators.ts +272 -0
- package/src/functions/order-by.ts +21 -0
- package/src/functions/spatial.ts +50 -0
- package/src/functions/{sql-template-tag.js → sql-template-tag.ts} +16 -13
- package/src/functions/string.ts +79 -0
- package/src/functions/{table-ref.js → table-ref.ts} +4 -4
- package/src/functions/util.ts +10 -0
- package/src/functions/window-frame.ts +58 -0
- package/src/functions/{window.js → window.ts} +18 -35
- package/src/index.ts +75 -0
- package/src/load/{create.js → create.ts} +9 -3
- package/src/load/extension.ts +3 -0
- package/src/load/{load.js → load.ts} +26 -11
- package/src/load/{sql-from.js → sql-from.ts} +14 -7
- package/src/transforms/{bin-1d.js → bin-1d.ts} +13 -9
- package/src/transforms/{bin-2d.js → bin-2d.ts} +17 -13
- package/src/transforms/bin-date.ts +48 -0
- package/src/transforms/bin-histogram.ts +61 -0
- package/src/transforms/{bin-linear-1d.js → bin-linear-1d.ts} +16 -11
- package/src/transforms/{bin-linear-2d.js → bin-linear-2d.ts} +23 -35
- package/src/transforms/filter-query.ts +40 -0
- package/src/transforms/{line-density.js → line-density.ts} +19 -17
- package/src/transforms/{m4.js → m4.ts} +17 -14
- package/src/transforms/{scales.js → scales.ts} +57 -14
- package/src/transforms/util/bin-step.ts +100 -0
- package/src/transforms/util/{time-interval.js → time-interval.ts} +32 -21
- package/src/types.ts +5 -30
- package/src/util/ast.ts +104 -0
- package/src/util/{function.js → function.ts} +40 -31
- package/src/util/identity.ts +7 -0
- package/src/util/{string.js → string.ts} +4 -4
- package/src/util/type-check.ts +31 -0
- package/src/visit/clone.ts +53 -0
- package/src/visit/{recurse.js → recurse.ts} +18 -6
- package/src/visit/{rewrite.js → rewrite.ts} +10 -18
- package/src/visit/{visitors.js → visitors.ts} +22 -30
- package/src/visit/walk.ts +46 -0
- package/dist/types/ast/aggregate.d.ts +0 -71
- package/dist/types/ast/between-op.d.ts +0 -46
- package/dist/types/ast/binary-op.d.ts +0 -28
- package/dist/types/ast/case.d.ts +0 -67
- package/dist/types/ast/cast.d.ts +0 -21
- package/dist/types/ast/column-param.d.ts +0 -23
- package/dist/types/ast/column-ref.d.ts +0 -40
- package/dist/types/ast/fragment.d.ts +0 -14
- package/dist/types/ast/from.d.ts +0 -21
- package/dist/types/ast/function.d.ts +0 -21
- package/dist/types/ast/in-op.d.ts +0 -21
- package/dist/types/ast/interval.d.ts +0 -21
- package/dist/types/ast/literal.d.ts +0 -15
- package/dist/types/ast/logical-op.d.ts +0 -46
- package/dist/types/ast/node.d.ts +0 -24
- package/dist/types/ast/order-by.d.ts +0 -29
- package/dist/types/ast/query.d.ts +0 -320
- package/dist/types/ast/sample.d.ts +0 -42
- package/dist/types/ast/select.d.ts +0 -22
- package/dist/types/ast/table-ref.d.ts +0 -25
- package/dist/types/ast/unary-op.d.ts +0 -39
- package/dist/types/ast/verbatim.d.ts +0 -9
- package/dist/types/ast/window.d.ts +0 -180
- package/dist/types/constants.d.ts +0 -38
- package/dist/types/functions/aggregate.d.ts +0 -236
- package/dist/types/functions/cast.d.ts +0 -26
- package/dist/types/functions/column.d.ts +0 -11
- package/dist/types/functions/datetime.d.ts +0 -45
- package/dist/types/functions/numeric.d.ts +0 -95
- package/dist/types/functions/operators.d.ts +0 -200
- package/dist/types/functions/order-by.d.ts +0 -18
- package/dist/types/functions/spatial.d.ts +0 -38
- package/dist/types/functions/string.d.ts +0 -57
- package/dist/types/functions/table-ref.d.ts +0 -9
- package/dist/types/functions/util.d.ts +0 -8
- package/dist/types/index-types.d.ts +0 -2
- package/dist/types/index.d.ts +0 -59
- package/dist/types/load/create.d.ts +0 -8
- package/dist/types/load/extension.d.ts +0 -1
- package/dist/types/load/load.d.ts +0 -12
- package/dist/types/load/sql-from.d.ts +0 -11
- package/dist/types/transforms/bin-1d.d.ts +0 -15
- package/dist/types/transforms/bin-2d.d.ts +0 -19
- package/dist/types/transforms/bin-date.d.ts +0 -44
- package/dist/types/transforms/bin-histogram.d.ts +0 -51
- package/dist/types/transforms/bin-linear-1d.d.ts +0 -12
- package/dist/types/transforms/bin-linear-2d.d.ts +0 -19
- package/dist/types/transforms/line-density.d.ts +0 -24
- package/dist/types/transforms/m4.d.ts +0 -21
- package/dist/types/transforms/scales.d.ts +0 -1
- package/dist/types/transforms/util/bin-step.d.ts +0 -61
- package/dist/types/transforms/util/time-interval.d.ts +0 -13
- package/dist/types/util/function.d.ts +0 -56
- package/dist/types/util/string.d.ts +0 -3
- package/dist/types/util/type-check.d.ts +0 -22
- package/dist/types/visit/recurse.d.ts +0 -28
- package/dist/types/visit/rewrite.d.ts +0 -10
- package/dist/types/visit/walk.d.ts +0 -10
- package/jsconfig.json +0 -11
- package/src/ast/aggregate.js +0 -167
- package/src/ast/binary-op.js +0 -40
- package/src/ast/column-param.js +0 -40
- package/src/ast/fragment.js +0 -26
- package/src/ast/from.js +0 -40
- package/src/ast/logical-op.js +0 -67
- package/src/ast/node.js +0 -29
- package/src/ast/order-by.js +0 -48
- package/src/ast/sample.js +0 -53
- package/src/ast/window.js +0 -294
- package/src/functions/aggregate.js +0 -347
- package/src/functions/datetime.js +0 -68
- package/src/functions/numeric.js +0 -143
- package/src/functions/operators.js +0 -301
- package/src/functions/order-by.js +0 -27
- package/src/functions/spatial.js +0 -59
- package/src/functions/string.js +0 -85
- package/src/functions/util.js +0 -14
- package/src/index-types.ts +0 -2
- package/src/load/extension.js +0 -3
- package/src/transforms/bin-date.js +0 -37
- package/src/transforms/bin-histogram.js +0 -52
- package/src/transforms/util/bin-step.js +0 -79
- package/src/util/type-check.js +0 -33
- package/src/visit/walk.js +0 -35
- package/tsconfig.json +0 -12
- package/vitest.config.ts +0 -3
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compute an arg_max aggregate.
|
|
3
|
-
* @param {ExprValue} y The argument to return.
|
|
4
|
-
* @param {ExprValue} x The expression to maximize.
|
|
5
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
6
|
-
*/
|
|
7
|
-
export function argmax(y: ExprValue, x: ExprValue): AggregateNode;
|
|
8
|
-
/**
|
|
9
|
-
* Compute an arg_min aggregate.
|
|
10
|
-
* @param {ExprValue} y The argument to return.
|
|
11
|
-
* @param {ExprValue} x The expression to minimize.
|
|
12
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
13
|
-
*/
|
|
14
|
-
export function argmin(y: ExprValue, x: ExprValue): AggregateNode;
|
|
15
|
-
/**
|
|
16
|
-
* Compute an array aggregation.
|
|
17
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
18
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
19
|
-
*/
|
|
20
|
-
export function arrayAgg(expr: ExprValue): AggregateNode;
|
|
21
|
-
/**
|
|
22
|
-
* Compute an average aggregate.
|
|
23
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
24
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
25
|
-
*/
|
|
26
|
-
export function avg(expr: ExprValue): AggregateNode;
|
|
27
|
-
/**
|
|
28
|
-
* Compute a correlation aggregate.
|
|
29
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
30
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
31
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
32
|
-
*/
|
|
33
|
-
export function corr(x: ExprValue, y: ExprValue): AggregateNode;
|
|
34
|
-
/**
|
|
35
|
-
* Compute a count aggregate.
|
|
36
|
-
* @param {ExprValue} [expr] An optional expression
|
|
37
|
-
* to count. If specified, only non-null expression values are counted.
|
|
38
|
-
* If omitted, all rows within a group are counted.
|
|
39
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
40
|
-
*/
|
|
41
|
-
export function count(expr?: ExprValue): AggregateNode;
|
|
42
|
-
/**
|
|
43
|
-
* Compute a sample covariance aggregate.
|
|
44
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
45
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
46
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
47
|
-
*/
|
|
48
|
-
export function covariance(x: ExprValue, y: ExprValue): AggregateNode;
|
|
49
|
-
/**
|
|
50
|
-
* Compute a population covariance aggregate.
|
|
51
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
52
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
53
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
54
|
-
*/
|
|
55
|
-
export function covarPop(x: ExprValue, y: ExprValue): AggregateNode;
|
|
56
|
-
/**
|
|
57
|
-
* Compute an entropy aggregate.
|
|
58
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
59
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
60
|
-
*/
|
|
61
|
-
export function entropy(expr: ExprValue): AggregateNode;
|
|
62
|
-
/**
|
|
63
|
-
* Compute a first aggregate.
|
|
64
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
65
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
66
|
-
*/
|
|
67
|
-
export function first(expr: ExprValue): AggregateNode;
|
|
68
|
-
/**
|
|
69
|
-
* Compute a geomean aggregate.
|
|
70
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
71
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
72
|
-
*/
|
|
73
|
-
export function geomean(expr: ExprValue): AggregateNode;
|
|
74
|
-
/**
|
|
75
|
-
* Compute a sample kurtosis aggregate.
|
|
76
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
77
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
78
|
-
*/
|
|
79
|
-
export function kurtosis(expr: ExprValue): AggregateNode;
|
|
80
|
-
/**
|
|
81
|
-
* Compute a median absolute deviation (MAD) aggregate.
|
|
82
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
83
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
84
|
-
*/
|
|
85
|
-
export function mad(expr: ExprValue): AggregateNode;
|
|
86
|
-
/**
|
|
87
|
-
* Compute a maximum aggregate.
|
|
88
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
89
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
90
|
-
*/
|
|
91
|
-
export function max(expr: ExprValue): AggregateNode;
|
|
92
|
-
/**
|
|
93
|
-
* Compute a median aggregate.
|
|
94
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
95
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
96
|
-
*/
|
|
97
|
-
export function median(expr: ExprValue): AggregateNode;
|
|
98
|
-
/**
|
|
99
|
-
* Compute a minimum aggregate.
|
|
100
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
101
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
102
|
-
*/
|
|
103
|
-
export function min(expr: ExprValue): AggregateNode;
|
|
104
|
-
/**
|
|
105
|
-
* Compute a mode aggregate.
|
|
106
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
107
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
108
|
-
*/
|
|
109
|
-
export function mode(expr: ExprValue): AggregateNode;
|
|
110
|
-
/**
|
|
111
|
-
* Compute a last aggregate.
|
|
112
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
113
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
114
|
-
*/
|
|
115
|
-
export function last(expr: ExprValue): AggregateNode;
|
|
116
|
-
/**
|
|
117
|
-
* Compute a product aggregate.
|
|
118
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
119
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
120
|
-
*/
|
|
121
|
-
export function product(expr: ExprValue): AggregateNode;
|
|
122
|
-
/**
|
|
123
|
-
* Compute a quantile aggregate.
|
|
124
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
125
|
-
* @param {ExprValue} p The quantile value.
|
|
126
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
127
|
-
*/
|
|
128
|
-
export function quantile(expr: ExprValue, p: ExprValue): AggregateNode;
|
|
129
|
-
/**
|
|
130
|
-
* Compute a linear regression reg_avgX aggregate.
|
|
131
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
132
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
133
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
134
|
-
*/
|
|
135
|
-
export function regrAvgX(x: ExprValue, y: ExprValue): AggregateNode;
|
|
136
|
-
/**
|
|
137
|
-
* Compute a linear regression reg_avgY aggregate.
|
|
138
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
139
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
140
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
141
|
-
*/
|
|
142
|
-
export function regrAvgY(x: ExprValue, y: ExprValue): AggregateNode;
|
|
143
|
-
/**
|
|
144
|
-
* Compute a linear regression count aggregate.
|
|
145
|
-
* This returns the count of rows where both x and y are non-null.
|
|
146
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
147
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
148
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
149
|
-
*/
|
|
150
|
-
export function regrCount(x: ExprValue, y: ExprValue): AggregateNode;
|
|
151
|
-
/**
|
|
152
|
-
* Compute a linear regression intercept aggregate.
|
|
153
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
154
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
155
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
156
|
-
*/
|
|
157
|
-
export function regrIntercept(x: ExprValue, y: ExprValue): AggregateNode;
|
|
158
|
-
/**
|
|
159
|
-
* Compute a linear regression R^2 aggregate.
|
|
160
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
161
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
162
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
163
|
-
*/
|
|
164
|
-
export function regrR2(x: ExprValue, y: ExprValue): AggregateNode;
|
|
165
|
-
/**
|
|
166
|
-
* Compute a linear regression regr_sxx aggregate.
|
|
167
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
168
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
169
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
170
|
-
*/
|
|
171
|
-
export function regrSXX(x: ExprValue, y: ExprValue): AggregateNode;
|
|
172
|
-
/**
|
|
173
|
-
* Compute a linear regression regr_sxy aggregate.
|
|
174
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
175
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
176
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
177
|
-
*/
|
|
178
|
-
export function regrSXY(x: ExprValue, y: ExprValue): AggregateNode;
|
|
179
|
-
/**
|
|
180
|
-
* Compute a linear regression regr_syy aggregate.
|
|
181
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
182
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
183
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
184
|
-
*/
|
|
185
|
-
export function regrSYY(x: ExprValue, y: ExprValue): AggregateNode;
|
|
186
|
-
/**
|
|
187
|
-
* Compute a linear regression slope aggregate.
|
|
188
|
-
* @param {ExprValue} x The x expression to aggregate.
|
|
189
|
-
* @param {ExprValue} y The y expression to aggregate.
|
|
190
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
191
|
-
*/
|
|
192
|
-
export function regrSlope(x: ExprValue, y: ExprValue): AggregateNode;
|
|
193
|
-
/**
|
|
194
|
-
* Compute a skewness aggregate.
|
|
195
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
196
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
197
|
-
*/
|
|
198
|
-
export function skewness(expr: ExprValue): AggregateNode;
|
|
199
|
-
/**
|
|
200
|
-
* Compute a sample standard deviation aggregate.
|
|
201
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
202
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
203
|
-
*/
|
|
204
|
-
export function stddev(expr: ExprValue): AggregateNode;
|
|
205
|
-
/**
|
|
206
|
-
* Compute a population standard deviation aggregate.
|
|
207
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
208
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
209
|
-
*/
|
|
210
|
-
export function stddevPop(expr: ExprValue): AggregateNode;
|
|
211
|
-
/**
|
|
212
|
-
* Compute a string aggregation.
|
|
213
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
214
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
215
|
-
*/
|
|
216
|
-
export function stringAgg(expr: ExprValue): AggregateNode;
|
|
217
|
-
/**
|
|
218
|
-
* Compute a sum aggregate.
|
|
219
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
220
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
221
|
-
*/
|
|
222
|
-
export function sum(expr: ExprValue): AggregateNode;
|
|
223
|
-
/**
|
|
224
|
-
* Compute a sample variance aggregate.
|
|
225
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
226
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
227
|
-
*/
|
|
228
|
-
export function variance(expr: ExprValue): AggregateNode;
|
|
229
|
-
/**
|
|
230
|
-
* Compute a population variance aggregate.
|
|
231
|
-
* @param {ExprValue} expr The expression to aggregate.
|
|
232
|
-
* @returns {AggregateNode} A SQL aggregate function call.
|
|
233
|
-
*/
|
|
234
|
-
export function varPop(expr: ExprValue): AggregateNode;
|
|
235
|
-
import type { ExprValue } from '../types.js';
|
|
236
|
-
import type { AggregateNode } from '../ast/aggregate.js';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Perform a type cast.
|
|
3
|
-
* @param {*} expr The expression to type cast.
|
|
4
|
-
* @param {string} type The type to cast to.
|
|
5
|
-
* @returns {CastNode}
|
|
6
|
-
*/
|
|
7
|
-
export function cast(expr: any, type: string): CastNode;
|
|
8
|
-
/**
|
|
9
|
-
* Cast an expression to a 32-bit integer type.
|
|
10
|
-
* @param {*} expr The expression to type cast.
|
|
11
|
-
* @returns {CastNode}
|
|
12
|
-
*/
|
|
13
|
-
export function int32(expr: any): CastNode;
|
|
14
|
-
/**
|
|
15
|
-
* Cast an expression to a 32-bit floating point number type.
|
|
16
|
-
* @param {*} expr The expression to type cast.
|
|
17
|
-
* @returns {CastNode}
|
|
18
|
-
*/
|
|
19
|
-
export function float32(expr: any): CastNode;
|
|
20
|
-
/**
|
|
21
|
-
* Cast an expression to a 64-bit floating point number type.
|
|
22
|
-
* @param {*} expr The expression to type cast.
|
|
23
|
-
* @returns {CastNode}
|
|
24
|
-
*/
|
|
25
|
-
export function float64(expr: any): CastNode;
|
|
26
|
-
import { CastNode } from '../ast/cast.js';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a column reference.
|
|
3
|
-
* @param {string | ParamLike} name The column name,
|
|
4
|
-
* as a string or as a dynamic parameter.
|
|
5
|
-
* @param {string | string[] | TableRefNode} [table] The table reference.
|
|
6
|
-
* @returns {ColumnRefNode}
|
|
7
|
-
*/
|
|
8
|
-
export function column(name: string | ParamLike, table?: string | string[] | TableRefNode): ColumnRefNode;
|
|
9
|
-
import type { ParamLike } from '../types.js';
|
|
10
|
-
import type { TableRefNode } from '../ast/table-ref.js';
|
|
11
|
-
import type { ColumnRefNode } from '../ast/column-ref.js';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a new interval.
|
|
3
|
-
* @param {string} unit The interval unit, such as day or year.
|
|
4
|
-
* @param {number} steps The number interval unit steps.
|
|
5
|
-
* @returns {IntervalNode}
|
|
6
|
-
*/
|
|
7
|
-
export function interval(unit: string, steps: number): IntervalNode;
|
|
8
|
-
/**
|
|
9
|
-
* Given a date/time value, return the milliseconds since the UNIX epoch.
|
|
10
|
-
* @param {ExprValue} expr The date/time expression.
|
|
11
|
-
* @returns {FunctionNode}
|
|
12
|
-
*/
|
|
13
|
-
export function epoch_ms(expr: ExprValue): FunctionNode;
|
|
14
|
-
/**
|
|
15
|
-
* Perform data binning according to the provided interval unit and steps.
|
|
16
|
-
* @param {ExprValue} expr The date/time expression to bin.
|
|
17
|
-
* @param {string} unit The datetime interval unit to bin by.
|
|
18
|
-
* @param {number} [steps=1] The number of interval steps.
|
|
19
|
-
* @returns {FunctionNode}
|
|
20
|
-
*/
|
|
21
|
-
export function dateBin(expr: ExprValue, unit: string, steps?: number): FunctionNode;
|
|
22
|
-
/**
|
|
23
|
-
* Map date/times to a month value, all within the same year for comparison.
|
|
24
|
-
* The resulting value is still date-typed.
|
|
25
|
-
* @param {ExprValue} expr The date/time expression.
|
|
26
|
-
* @returns {FunctionNode}
|
|
27
|
-
*/
|
|
28
|
-
export function dateMonth(expr: ExprValue): FunctionNode;
|
|
29
|
-
/**
|
|
30
|
-
* Map date/times to a month and day value, all within the same year for
|
|
31
|
-
* comparison. The resulting value is still date-typed.
|
|
32
|
-
* @param {ExprValue} expr The date/time expression.
|
|
33
|
-
* @returns {FunctionNode}
|
|
34
|
-
*/
|
|
35
|
-
export function dateMonthDay(expr: ExprValue): FunctionNode;
|
|
36
|
-
/**
|
|
37
|
-
* Map date/times to a day of the month value, all within the same year and month
|
|
38
|
-
* for comparison. The resulting value is still date-typed.
|
|
39
|
-
* @param {ExprValue} expr The date/time expression.
|
|
40
|
-
* @returns {FunctionNode}
|
|
41
|
-
*/
|
|
42
|
-
export function dateDay(expr: ExprValue): FunctionNode;
|
|
43
|
-
import { IntervalNode } from '../ast/interval.js';
|
|
44
|
-
import type { ExprValue } from '../types.js';
|
|
45
|
-
import type { FunctionNode } from '../ast/function.js';
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Return true if the floating point value is not a number, false otherwise.
|
|
3
|
-
* @param {ExprValue} expr The input number.
|
|
4
|
-
* @returns {FunctionNode}
|
|
5
|
-
*/
|
|
6
|
-
export function isNaN(expr: ExprValue): FunctionNode;
|
|
7
|
-
/**
|
|
8
|
-
* Return true if the floating point value is finite, false otherwise.
|
|
9
|
-
* @param {ExprValue} expr The input number.
|
|
10
|
-
* @returns {FunctionNode}
|
|
11
|
-
*/
|
|
12
|
-
export function isFinite(expr: ExprValue): FunctionNode;
|
|
13
|
-
/**
|
|
14
|
-
* Return true if the floating point value is infinite, false otherwise.
|
|
15
|
-
* @param {ExprValue} expr The input number.
|
|
16
|
-
* @returns {FunctionNode}
|
|
17
|
-
*/
|
|
18
|
-
export function isInfinite(expr: ExprValue): FunctionNode;
|
|
19
|
-
/**
|
|
20
|
-
* Selects the largest value.
|
|
21
|
-
* @param {...ExprValue} expr The input expressions.
|
|
22
|
-
* @returns {FunctionNode}
|
|
23
|
-
*/
|
|
24
|
-
export function greatest(...expr: ExprValue[]): FunctionNode;
|
|
25
|
-
/**
|
|
26
|
-
* Selects the smallest value.
|
|
27
|
-
* @param {...ExprValue} expr The input expressions.
|
|
28
|
-
* @returns {FunctionNode}
|
|
29
|
-
*/
|
|
30
|
-
export function least(...expr: ExprValue[]): FunctionNode;
|
|
31
|
-
/**
|
|
32
|
-
* Compute the exponentional function `e ** expr`.
|
|
33
|
-
* @param {ExprValue} expr The input number.
|
|
34
|
-
* @returns {FunctionNode}
|
|
35
|
-
*/
|
|
36
|
-
export function exp(expr: ExprValue): FunctionNode;
|
|
37
|
-
/**
|
|
38
|
-
* Compute a base 10 logarithm.
|
|
39
|
-
* @param {ExprValue} expr The input number.
|
|
40
|
-
* @returns {FunctionNode}
|
|
41
|
-
*/
|
|
42
|
-
export function log(expr: ExprValue): FunctionNode;
|
|
43
|
-
/**
|
|
44
|
-
* Compute a natural logarithm.
|
|
45
|
-
* @param {ExprValue} expr The input number.
|
|
46
|
-
* @returns {FunctionNode}
|
|
47
|
-
*/
|
|
48
|
-
export function ln(expr: ExprValue): FunctionNode;
|
|
49
|
-
/**
|
|
50
|
-
* Compute the sign of a number.
|
|
51
|
-
* @param {ExprValue} expr The input number.
|
|
52
|
-
* @returns {FunctionNode}
|
|
53
|
-
*/
|
|
54
|
-
export function sign(expr: ExprValue): FunctionNode;
|
|
55
|
-
/**
|
|
56
|
-
* Compute the absolute value of a number.
|
|
57
|
-
* @param {ExprValue} expr The input number.
|
|
58
|
-
* @returns {FunctionNode}
|
|
59
|
-
*/
|
|
60
|
-
export function abs(expr: ExprValue): FunctionNode;
|
|
61
|
-
/**
|
|
62
|
-
* Compute the square root of a number.
|
|
63
|
-
* @param {ExprValue} expr The input number.
|
|
64
|
-
* @returns {FunctionNode}
|
|
65
|
-
*/
|
|
66
|
-
export function sqrt(expr: ExprValue): FunctionNode;
|
|
67
|
-
/**
|
|
68
|
-
* Rounds the number up.
|
|
69
|
-
* @param {ExprValue} expr The input number.
|
|
70
|
-
* @returns {FunctionNode}
|
|
71
|
-
*/
|
|
72
|
-
export function ceil(expr: ExprValue): FunctionNode;
|
|
73
|
-
/**
|
|
74
|
-
* Rounds the number down.
|
|
75
|
-
* @param {ExprValue} expr The input number.
|
|
76
|
-
* @returns {FunctionNode}
|
|
77
|
-
*/
|
|
78
|
-
export function floor(expr: ExprValue): FunctionNode;
|
|
79
|
-
/**
|
|
80
|
-
* Round to the given decimal places.
|
|
81
|
-
* @param {ExprValue} expr The input number.
|
|
82
|
-
* @param {ExprValue} [places] The decimal places.
|
|
83
|
-
* Negative values are allowed, to round to tens, hundreds, etc.
|
|
84
|
-
* If unspecified, defaults to zero.
|
|
85
|
-
* @returns {FunctionNode}
|
|
86
|
-
*/
|
|
87
|
-
export function round(expr: ExprValue, places?: ExprValue): FunctionNode;
|
|
88
|
-
/**
|
|
89
|
-
* Truncates the number.
|
|
90
|
-
* @param {ExprValue} expr The input number.
|
|
91
|
-
* @returns {FunctionNode}
|
|
92
|
-
*/
|
|
93
|
-
export function trunc(expr: ExprValue): FunctionNode;
|
|
94
|
-
import type { ExprValue } from '../types.js';
|
|
95
|
-
import type { FunctionNode } from '../ast/function.js';
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Logical and (AND) operator.
|
|
3
|
-
* @param {...ExprVarArgs} clauses The input expressions.
|
|
4
|
-
* @returns {AndNode}
|
|
5
|
-
*/
|
|
6
|
-
export function and(...clauses: ExprVarArgs[]): AndNode<any>;
|
|
7
|
-
/**
|
|
8
|
-
* Logical or (OR) operator.
|
|
9
|
-
* @param {...ExprVarArgs} clauses The input expressions.
|
|
10
|
-
* @returns {OrNode}
|
|
11
|
-
*/
|
|
12
|
-
export function or(...clauses: ExprVarArgs[]): OrNode<any>;
|
|
13
|
-
/**
|
|
14
|
-
* Logical not (NOT) operator.
|
|
15
|
-
* @param {ExprValue} expr The expression to negate.
|
|
16
|
-
* @returns {UnaryOpNode}
|
|
17
|
-
*/
|
|
18
|
-
export function not(expr: ExprValue): UnaryOpNode;
|
|
19
|
-
/**
|
|
20
|
-
* Null check (IS NULL) operator.
|
|
21
|
-
* @param {ExprValue} expr The expression to test.
|
|
22
|
-
* @returns {UnaryPosftixOpNode}
|
|
23
|
-
*/
|
|
24
|
-
export function isNull(expr: ExprValue): UnaryPosftixOpNode;
|
|
25
|
-
/**
|
|
26
|
-
* Non-null check (IS NOT NULL) operator.
|
|
27
|
-
* @param {ExprValue} expr The expression to test.
|
|
28
|
-
* @returns {UnaryPosftixOpNode}
|
|
29
|
-
*/
|
|
30
|
-
export function isNotNull(expr: ExprValue): UnaryPosftixOpNode;
|
|
31
|
-
/**
|
|
32
|
-
* Bitwise not (~) operator.
|
|
33
|
-
* @param {ExprValue} expr The input expression.
|
|
34
|
-
* @returns {UnaryOpNode}
|
|
35
|
-
*/
|
|
36
|
-
export function bitNot(expr: ExprValue): UnaryOpNode;
|
|
37
|
-
/**
|
|
38
|
-
* Bitwise and (&) operator.
|
|
39
|
-
* @param {ExprValue} left The left argument.
|
|
40
|
-
* @param {ExprValue} right The right argument.
|
|
41
|
-
* @returns {BinaryOpNode}
|
|
42
|
-
*/
|
|
43
|
-
export function bitAnd(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
44
|
-
/**
|
|
45
|
-
* Bitwise or (|) operator.
|
|
46
|
-
* @param {ExprValue} left The left argument.
|
|
47
|
-
* @param {ExprValue} right The right argument.
|
|
48
|
-
* @returns {BinaryOpNode}
|
|
49
|
-
*/
|
|
50
|
-
export function bitOr(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
51
|
-
/**
|
|
52
|
-
* Bit shift left (<<) operator.
|
|
53
|
-
* @param {ExprValue} left The left argument.
|
|
54
|
-
* @param {ExprValue} right The right argument.
|
|
55
|
-
* @returns {BinaryOpNode}
|
|
56
|
-
*/
|
|
57
|
-
export function bitLeft(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
58
|
-
/**
|
|
59
|
-
* Bit shift right (>>) operator.
|
|
60
|
-
* @param {ExprValue} left The left argument.
|
|
61
|
-
* @param {ExprValue} right The right argument.
|
|
62
|
-
* @returns {BinaryOpNode}
|
|
63
|
-
*/
|
|
64
|
-
export function bitRight(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
65
|
-
/**
|
|
66
|
-
* Addition (+) operator.
|
|
67
|
-
* @param {ExprValue} left The left argument.
|
|
68
|
-
* @param {ExprValue} right The right argument.
|
|
69
|
-
* @returns {BinaryOpNode}
|
|
70
|
-
*/
|
|
71
|
-
export function add(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
72
|
-
/**
|
|
73
|
-
* Subtraction (-) operator.
|
|
74
|
-
* @param {ExprValue} left The left argument.
|
|
75
|
-
* @param {ExprValue} right The right argument.
|
|
76
|
-
* @returns {BinaryOpNode}
|
|
77
|
-
*/
|
|
78
|
-
export function sub(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
79
|
-
/**
|
|
80
|
-
* Multiplication (*) operator.
|
|
81
|
-
* @param {ExprValue} left The left argument.
|
|
82
|
-
* @param {ExprValue} right The right argument.
|
|
83
|
-
* @returns {BinaryOpNode}
|
|
84
|
-
*/
|
|
85
|
-
export function mul(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
86
|
-
/**
|
|
87
|
-
* Division (/) operator.
|
|
88
|
-
* @param {ExprValue} left The left argument.
|
|
89
|
-
* @param {ExprValue} right The right argument.
|
|
90
|
-
* @returns {BinaryOpNode}
|
|
91
|
-
*/
|
|
92
|
-
export function div(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
93
|
-
/**
|
|
94
|
-
* Integer division (//) operator.
|
|
95
|
-
* @param {ExprValue} left The left argument.
|
|
96
|
-
* @param {ExprValue} right The right argument.
|
|
97
|
-
* @returns {BinaryOpNode}
|
|
98
|
-
*/
|
|
99
|
-
export function idiv(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
100
|
-
/**
|
|
101
|
-
* Modulo (%) operator.
|
|
102
|
-
* @param {ExprValue} left The left argument.
|
|
103
|
-
* @param {ExprValue} right The right argument.
|
|
104
|
-
* @returns {BinaryOpNode}
|
|
105
|
-
*/
|
|
106
|
-
export function mod(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
107
|
-
/**
|
|
108
|
-
* Exponentiation (**) operator.
|
|
109
|
-
* @param {ExprValue} left The left argument.
|
|
110
|
-
* @param {ExprValue} right The right argument.
|
|
111
|
-
* @returns {BinaryOpNode}
|
|
112
|
-
*/
|
|
113
|
-
export function pow(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
114
|
-
/**
|
|
115
|
-
* Equality comparision (=) operator.
|
|
116
|
-
* @param {ExprValue} left The left argument.
|
|
117
|
-
* @param {ExprValue} right The right argument.
|
|
118
|
-
* @returns {BinaryOpNode}
|
|
119
|
-
*/
|
|
120
|
-
export function eq(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
121
|
-
/**
|
|
122
|
-
* Non-equality comparision (<>) operator.
|
|
123
|
-
* @param {ExprValue} left The left argument.
|
|
124
|
-
* @param {ExprValue} right The right argument.
|
|
125
|
-
* @returns {BinaryOpNode}
|
|
126
|
-
*/
|
|
127
|
-
export function neq(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
128
|
-
/**
|
|
129
|
-
* Less-than comparision (<) operator.
|
|
130
|
-
* @param {ExprValue} left The left argument.
|
|
131
|
-
* @param {ExprValue} right The right argument.
|
|
132
|
-
* @returns {BinaryOpNode}
|
|
133
|
-
*/
|
|
134
|
-
export function lt(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
135
|
-
/**
|
|
136
|
-
* Greater-than comparision (>) operator.
|
|
137
|
-
* @param {ExprValue} left The left argument.
|
|
138
|
-
* @param {ExprValue} right The right argument.
|
|
139
|
-
* @returns {BinaryOpNode}
|
|
140
|
-
*/
|
|
141
|
-
export function gt(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
142
|
-
/**
|
|
143
|
-
* Less-than or equal comparision (<=) operator.
|
|
144
|
-
* @param {ExprValue} left The left argument.
|
|
145
|
-
* @param {ExprValue} right The right argument.
|
|
146
|
-
* @returns {BinaryOpNode}
|
|
147
|
-
*/
|
|
148
|
-
export function lte(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
149
|
-
/**
|
|
150
|
-
* Greater-than or equal comparision (>=) operator.
|
|
151
|
-
* @param {ExprValue} left The left argument.
|
|
152
|
-
* @param {ExprValue} right The right argument.
|
|
153
|
-
* @returns {BinaryOpNode}
|
|
154
|
-
*/
|
|
155
|
-
export function gte(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
156
|
-
/**
|
|
157
|
-
* Null-inclusive non-equality (IS DISTINCT FROM) operator.
|
|
158
|
-
* @param {ExprValue} left The left argument.
|
|
159
|
-
* @param {ExprValue} right The right argument.
|
|
160
|
-
* @returns {BinaryOpNode}
|
|
161
|
-
*/
|
|
162
|
-
export function isDistinct(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
163
|
-
/**
|
|
164
|
-
* Null-inclusive equality (IS NOT DISTINCT FROM) operator.
|
|
165
|
-
* @param {ExprValue} left The left argument.
|
|
166
|
-
* @param {ExprValue} right The right argument.
|
|
167
|
-
* @returns {BinaryOpNode}
|
|
168
|
-
*/
|
|
169
|
-
export function isNotDistinct(left: ExprValue, right: ExprValue): BinaryOpNode;
|
|
170
|
-
/**
|
|
171
|
-
* Range inclusion (BETWEEN) operator.
|
|
172
|
-
* @param {ExprValue} expr The expression to test.
|
|
173
|
-
* @param {ExprValue[]} extent The range extent.
|
|
174
|
-
* @returns {BetweenOpNode}
|
|
175
|
-
*/
|
|
176
|
-
export function isBetween(expr: ExprValue, extent: ExprValue[]): BetweenOpNode;
|
|
177
|
-
/**
|
|
178
|
-
* Range exclusion (NOT BETWEEN) operator.
|
|
179
|
-
* @param {ExprValue} expr The expression to test.
|
|
180
|
-
* @param {ExprValue[]} extent The range extent.
|
|
181
|
-
* @returns {NotBetweenOpNode}
|
|
182
|
-
*/
|
|
183
|
-
export function isNotBetween(expr: ExprValue, extent: ExprValue[]): NotBetweenOpNode;
|
|
184
|
-
/**
|
|
185
|
-
* Set inclusion (IN) operator.
|
|
186
|
-
* @param {ExprValue} expr The expression to test.
|
|
187
|
-
* @param {ExprValue[]} values The included values.
|
|
188
|
-
* @returns {InOpNode}
|
|
189
|
-
*/
|
|
190
|
-
export function isIn(expr: ExprValue, values: ExprValue[]): InOpNode;
|
|
191
|
-
import type { ExprVarArgs } from '../types.js';
|
|
192
|
-
import { AndNode } from '../ast/logical-op.js';
|
|
193
|
-
import { OrNode } from '../ast/logical-op.js';
|
|
194
|
-
import type { ExprValue } from '../types.js';
|
|
195
|
-
import { UnaryOpNode } from '../ast/unary-op.js';
|
|
196
|
-
import { UnaryPosftixOpNode } from '../ast/unary-op.js';
|
|
197
|
-
import { BinaryOpNode } from '../ast/binary-op.js';
|
|
198
|
-
import { BetweenOpNode } from '../ast/between-op.js';
|
|
199
|
-
import { NotBetweenOpNode } from '../ast/between-op.js';
|
|
200
|
-
import { InOpNode } from '../ast/in-op.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Indicate ascending sort order for an expression.
|
|
3
|
-
* @param {ExprValue} expr An expression to order by.
|
|
4
|
-
* @param {boolean | undefined} [nullsFirst] Flag indicating if null values
|
|
5
|
-
* should be sorted first.
|
|
6
|
-
* @returns {OrderByNode}
|
|
7
|
-
*/
|
|
8
|
-
export function asc(expr: ExprValue, nullsFirst?: boolean | undefined): OrderByNode;
|
|
9
|
-
/**
|
|
10
|
-
* Indicate descending sort order for an expression.
|
|
11
|
-
* @param {ExprValue} expr An expression to order by.
|
|
12
|
-
* @param {boolean | undefined} [nullsFirst] Flag indicating if null values
|
|
13
|
-
* should be sorted first.
|
|
14
|
-
* @returns {OrderByNode}
|
|
15
|
-
*/
|
|
16
|
-
export function desc(expr: ExprValue, nullsFirst?: boolean | undefined): OrderByNode;
|
|
17
|
-
import type { ExprValue } from '../types.js';
|
|
18
|
-
import { OrderByNode } from '../ast/order-by.js';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Function that converts geometry data to GeoJSON format.
|
|
3
|
-
* @param {ExprValue} expr The input expression.
|
|
4
|
-
* @returns {FunctionNode}
|
|
5
|
-
*/
|
|
6
|
-
export function geojson(expr: ExprValue): FunctionNode;
|
|
7
|
-
/**
|
|
8
|
-
* Function that returns a spatial x position (using ST_X).
|
|
9
|
-
* @param {ExprValue} expr The input expression.
|
|
10
|
-
* @returns {FunctionNode}
|
|
11
|
-
*/
|
|
12
|
-
export function x(expr: ExprValue): FunctionNode;
|
|
13
|
-
/**
|
|
14
|
-
* Function that returns a spatial y position (using ST_Y).
|
|
15
|
-
* @param {ExprValue} expr The input expression.
|
|
16
|
-
* @returns {FunctionNode}
|
|
17
|
-
*/
|
|
18
|
-
export function y(expr: ExprValue): FunctionNode;
|
|
19
|
-
/**
|
|
20
|
-
* Function that returns the centroid point for geometry data.
|
|
21
|
-
* @param {ExprValue} expr The input expression.
|
|
22
|
-
* @returns {FunctionNode}
|
|
23
|
-
*/
|
|
24
|
-
export function centroid(expr: ExprValue): FunctionNode;
|
|
25
|
-
/**
|
|
26
|
-
* Function that returns the centroid x-coordinate for geometry data.
|
|
27
|
-
* @param {ExprValue} expr The input expression.
|
|
28
|
-
* @returns {FunctionNode}
|
|
29
|
-
*/
|
|
30
|
-
export function centroidX(expr: ExprValue): FunctionNode;
|
|
31
|
-
/**
|
|
32
|
-
* Function that returns yhe centroid y-coordinate for geometry data.
|
|
33
|
-
* @param {ExprValue} expr The input expression.
|
|
34
|
-
* @returns {FunctionNode}
|
|
35
|
-
*/
|
|
36
|
-
export function centroidY(expr: ExprValue): FunctionNode;
|
|
37
|
-
import type { ExprValue } from '../types.js';
|
|
38
|
-
import type { FunctionNode } from '../ast/function.js';
|