@malloydata/malloy 0.0.243-dev250314155434 → 0.0.243-dev250314163430
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/dist/annotation.d.ts +2 -2
- package/dist/api/asynchronous.d.ts +4 -4
- package/dist/api/connection.d.ts +1 -1
- package/dist/api/core.d.ts +3 -2
- package/dist/api/stateless.d.ts +1 -1
- package/dist/api/util.d.ts +5 -5
- package/dist/connection/base_connection.d.ts +4 -4
- package/dist/connection/types.d.ts +4 -4
- package/dist/dialect/dialect.d.ts +2 -2
- package/dist/dialect/dialect_map.d.ts +1 -1
- package/dist/dialect/duckdb/dialect_functions.d.ts +1 -1
- package/dist/dialect/duckdb/duckdb.d.ts +3 -3
- package/dist/dialect/duckdb/function_overrides.d.ts +1 -1
- package/dist/dialect/functions/malloy_standard_functions.d.ts +1 -1
- package/dist/dialect/functions/util.d.ts +2 -2
- package/dist/dialect/mysql/dialect_functions.d.ts +1 -1
- package/dist/dialect/mysql/function_overrides.d.ts +1 -1
- package/dist/dialect/mysql/mysql.d.ts +4 -3
- package/dist/dialect/mysql/mysql.js +0 -7
- package/dist/dialect/pg_impl.d.ts +3 -2
- package/dist/dialect/postgres/dialect_functions.d.ts +1 -1
- package/dist/dialect/postgres/function_overrides.d.ts +1 -1
- package/dist/dialect/postgres/postgres.d.ts +3 -3
- package/dist/dialect/snowflake/dialect_functions.d.ts +1 -1
- package/dist/dialect/snowflake/function_overrides.d.ts +1 -1
- package/dist/dialect/snowflake/snowflake.d.ts +4 -3
- package/dist/dialect/standardsql/dialect_functions.d.ts +1 -1
- package/dist/dialect/standardsql/function_overrides.d.ts +1 -1
- package/dist/dialect/standardsql/standardsql.d.ts +4 -3
- package/dist/dialect/trino/dialect_functions.d.ts +1 -1
- package/dist/dialect/trino/function_overrides.d.ts +1 -1
- package/dist/dialect/trino/trino.d.ts +3 -3
- package/dist/lang/ast/ast-utils.d.ts +1 -1
- package/dist/lang/ast/error-factory.d.ts +1 -1
- package/dist/lang/ast/expressions/apply.d.ts +3 -3
- package/dist/lang/ast/expressions/binary-boolean.d.ts +3 -3
- package/dist/lang/ast/expressions/binary-numeric.d.ts +3 -3
- package/dist/lang/ast/expressions/boolean.d.ts +1 -1
- package/dist/lang/ast/expressions/case.d.ts +2 -2
- package/dist/lang/ast/expressions/constant-expression.d.ts +6 -6
- package/dist/lang/ast/expressions/expr-aggregate-function.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-alternation-tree.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-array-literal.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-asymmetric.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-avg.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-cast.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-coalesce.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-compare.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-count-distinct.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-count.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-filter-expr.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-func.d.ts +7 -7
- package/dist/lang/ast/expressions/expr-granular-time.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-id-reference.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-max.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-min.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-minus.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-not.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-now.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-null.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-number.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-parens.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-props.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-record-literal.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-regex.d.ts +1 -1
- package/dist/lang/ast/expressions/expr-string.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-sum.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-time-extract.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-time.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-ungroup.d.ts +2 -2
- package/dist/lang/ast/expressions/for-range.d.ts +4 -4
- package/dist/lang/ast/expressions/function-ordering.d.ts +3 -3
- package/dist/lang/ast/expressions/partial-compare.d.ts +3 -3
- package/dist/lang/ast/expressions/partition_by.d.ts +1 -1
- package/dist/lang/ast/expressions/pick-when.d.ts +2 -2
- package/dist/lang/ast/expressions/range.d.ts +3 -3
- package/dist/lang/ast/expressions/time-frame.d.ts +1 -1
- package/dist/lang/ast/expressions/time-literal.d.ts +5 -5
- package/dist/lang/ast/field-space/ast-view-field.d.ts +3 -3
- package/dist/lang/ast/field-space/column-space-field.d.ts +1 -1
- package/dist/lang/ast/field-space/dynamic-space.d.ts +5 -5
- package/dist/lang/ast/field-space/index-field-space.d.ts +2 -2
- package/dist/lang/ast/field-space/ir-view-field.d.ts +2 -2
- package/dist/lang/ast/field-space/join-space-field.d.ts +2 -2
- package/dist/lang/ast/field-space/parameter-space.d.ts +6 -6
- package/dist/lang/ast/field-space/project-field-space.d.ts +1 -1
- package/dist/lang/ast/field-space/query-input-space.d.ts +4 -4
- package/dist/lang/ast/field-space/query-spaces.d.ts +7 -6
- package/dist/lang/ast/field-space/reference-field.d.ts +4 -4
- package/dist/lang/ast/field-space/refined-space.d.ts +5 -5
- package/dist/lang/ast/field-space/rename-space-field.d.ts +1 -1
- package/dist/lang/ast/field-space/static-space.d.ts +5 -5
- package/dist/lang/ast/field-space/struct-space-field-base.d.ts +3 -3
- package/dist/lang/ast/field-space/view-field.d.ts +2 -2
- package/dist/lang/ast/parameters/argument.d.ts +2 -2
- package/dist/lang/ast/parameters/has-parameter.d.ts +2 -2
- package/dist/lang/ast/query-builders/index-builder.d.ts +7 -7
- package/dist/lang/ast/query-builders/partial-builder.d.ts +1 -1
- package/dist/lang/ast/query-builders/partial-builder.js +0 -22
- package/dist/lang/ast/query-builders/project-builder.d.ts +7 -7
- package/dist/lang/ast/query-builders/reduce-builder.d.ts +8 -7
- package/dist/lang/ast/query-elements/anonymous-query.d.ts +6 -4
- package/dist/lang/ast/query-elements/query-arrow.d.ts +3 -3
- package/dist/lang/ast/query-elements/query-base.d.ts +2 -2
- package/dist/lang/ast/query-elements/query-head-struct.d.ts +2 -2
- package/dist/lang/ast/query-elements/query-raw.d.ts +4 -4
- package/dist/lang/ast/query-elements/query-reference.d.ts +5 -4
- package/dist/lang/ast/query-elements/query-refine.d.ts +3 -3
- package/dist/lang/ast/query-items/field-declaration.d.ts +10 -9
- package/dist/lang/ast/query-items/field-references.d.ts +7 -6
- package/dist/lang/ast/query-items/typecheck_utils.d.ts +2 -2
- package/dist/lang/ast/query-properties/aggregate.d.ts +3 -2
- package/dist/lang/ast/query-properties/calculate.d.ts +3 -2
- package/dist/lang/ast/query-properties/declare-fields.d.ts +5 -4
- package/dist/lang/ast/query-properties/extend.d.ts +4 -3
- package/dist/lang/ast/query-properties/filters.d.ts +6 -5
- package/dist/lang/ast/query-properties/group-by.d.ts +3 -2
- package/dist/lang/ast/query-properties/indexing.d.ts +4 -3
- package/dist/lang/ast/query-properties/limit.d.ts +2 -1
- package/dist/lang/ast/query-properties/nest.d.ts +4 -3
- package/dist/lang/ast/query-properties/nests.d.ts +3 -2
- package/dist/lang/ast/query-properties/ordering.d.ts +5 -3
- package/dist/lang/ast/query-properties/project-statement.d.ts +4 -3
- package/dist/lang/ast/query-properties/qop-desc.d.ts +5 -5
- package/dist/lang/ast/query-properties/sampling.d.ts +3 -2
- package/dist/lang/ast/query-utils.d.ts +2 -2
- package/dist/lang/ast/source-elements/composite-source.d.ts +3 -3
- package/dist/lang/ast/source-elements/named-source.d.ts +4 -4
- package/dist/lang/ast/source-elements/query-source.d.ts +4 -4
- package/dist/lang/ast/source-elements/refined-source.d.ts +4 -4
- package/dist/lang/ast/source-elements/source.d.ts +3 -3
- package/dist/lang/ast/source-elements/sql-source.d.ts +4 -4
- package/dist/lang/ast/source-elements/table-source.d.ts +2 -2
- package/dist/lang/ast/source-properties/field-list-edit.d.ts +1 -1
- package/dist/lang/ast/source-properties/join.d.ts +14 -11
- package/dist/lang/ast/source-properties/primary-key.d.ts +1 -1
- package/dist/lang/ast/source-properties/renames.d.ts +4 -4
- package/dist/lang/ast/source-properties/timezone-statement.d.ts +2 -2
- package/dist/lang/ast/source-properties/view-field-declaration.d.ts +7 -6
- package/dist/lang/ast/source-properties/views.d.ts +2 -2
- package/dist/lang/ast/source-query-elements/include-item.d.ts +4 -3
- package/dist/lang/ast/source-query-elements/source-query-element.d.ts +3 -3
- package/dist/lang/ast/source-query-elements/sq-arrow.d.ts +3 -3
- package/dist/lang/ast/source-query-elements/sq-extend.d.ts +2 -2
- package/dist/lang/ast/source-query-elements/sq-reference.d.ts +4 -4
- package/dist/lang/ast/source-query-elements/sq-refine.d.ts +1 -1
- package/dist/lang/ast/source-query-elements/sq-source.d.ts +1 -1
- package/dist/lang/ast/sql-elements/sql-string.d.ts +1 -1
- package/dist/lang/ast/statements/define-query.d.ts +6 -4
- package/dist/lang/ast/statements/define-source.d.ts +7 -5
- package/dist/lang/ast/statements/import-statement.d.ts +3 -2
- package/dist/lang/ast/struct-utils.d.ts +2 -2
- package/dist/lang/ast/time-utils.d.ts +2 -2
- package/dist/lang/ast/typedesc-utils.d.ts +1 -1
- package/dist/lang/ast/types/annotation-elements.d.ts +6 -5
- package/dist/lang/ast/types/binary_operators.d.ts +1 -1
- package/dist/lang/ast/types/definition-list.d.ts +4 -3
- package/dist/lang/ast/types/dialect-name-space.d.ts +3 -3
- package/dist/lang/ast/types/document-compile-result.d.ts +2 -2
- package/dist/lang/ast/types/expr-result.d.ts +1 -1
- package/dist/lang/ast/types/expr-value.d.ts +3 -3
- package/dist/lang/ast/types/expression-def.d.ts +4 -4
- package/dist/lang/ast/types/field-collection-member.d.ts +2 -2
- package/dist/lang/ast/types/field-prop-statement.d.ts +1 -1
- package/dist/lang/ast/types/field-space.d.ts +5 -5
- package/dist/lang/ast/types/global-name-space.d.ts +3 -3
- package/dist/lang/ast/types/granular-result.d.ts +3 -3
- package/dist/lang/ast/types/lookup-result.d.ts +3 -3
- package/dist/lang/ast/types/malloy-element.d.ts +10 -9
- package/dist/lang/ast/types/model-entry.d.ts +1 -1
- package/dist/lang/ast/types/name-space.d.ts +1 -1
- package/dist/lang/ast/types/noteable.d.ts +1 -1
- package/dist/lang/ast/types/op-desc.d.ts +2 -2
- package/dist/lang/ast/types/pipeline-comp.d.ts +1 -1
- package/dist/lang/ast/types/query-builder.d.ts +4 -4
- package/dist/lang/ast/types/query-comp.d.ts +1 -1
- package/dist/lang/ast/types/query-element.d.ts +3 -3
- package/dist/lang/ast/types/query-extend-property.d.ts +1 -1
- package/dist/lang/ast/types/query-item.d.ts +3 -3
- package/dist/lang/ast/types/query-property-interface.d.ts +1 -1
- package/dist/lang/ast/types/query-property.d.ts +2 -2
- package/dist/lang/ast/types/source-desc.d.ts +1 -1
- package/dist/lang/ast/types/source-property.d.ts +1 -1
- package/dist/lang/ast/types/space-entry.d.ts +3 -3
- package/dist/lang/ast/types/space-field.d.ts +2 -2
- package/dist/lang/ast/types/space-param.d.ts +2 -2
- package/dist/lang/ast/types/time-result.d.ts +2 -2
- package/dist/lang/ast/view-elements/qop-desc-view.d.ts +4 -4
- package/dist/lang/ast/view-elements/reference-view.d.ts +5 -5
- package/dist/lang/ast/view-elements/refine-utils.d.ts +2 -2
- package/dist/lang/ast/view-elements/view-arrow.d.ts +4 -4
- package/dist/lang/ast/view-elements/view-refine.d.ts +4 -4
- package/dist/lang/ast/view-elements/view.d.ts +4 -4
- package/dist/lang/field-utils.d.ts +1 -1
- package/dist/lang/malloy-parse-info.d.ts +1 -1
- package/dist/lang/malloy-to-ast.d.ts +9 -9
- package/dist/lang/malloy-to-stable-query.d.ts +7 -7
- package/dist/lang/parse-log.d.ts +2 -2
- package/dist/lang/parse-malloy.d.ts +9 -7
- package/dist/lang/parse-tree-walkers/document-completion-walker.d.ts +2 -2
- package/dist/lang/parse-tree-walkers/document-help-context-walker.d.ts +1 -1
- package/dist/lang/parse-tree-walkers/document-symbol-walker.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +3 -3
- package/dist/lang/parse-tree-walkers/find-external-references.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/find-table-path-walker.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/model-annotation-walker.d.ts +4 -4
- package/dist/lang/parse-utils.d.ts +2 -2
- package/dist/lang/reference-list.d.ts +1 -1
- package/dist/lang/run-malloy-parser.d.ts +2 -2
- package/dist/lang/syntax-errors/custom-error-messages.d.ts +1 -1
- package/dist/lang/syntax-errors/malloy-parser-error-listener.d.ts +4 -4
- package/dist/lang/test/expr-to-str.d.ts +1 -1
- package/dist/lang/test/parse-expects.d.ts +2 -2
- package/dist/lang/test/test-translator.d.ts +7 -7
- package/dist/lang/translate-response.d.ts +7 -7
- package/dist/lang/utils.d.ts +3 -3
- package/dist/lang/zone.d.ts +1 -1
- package/dist/malloy.d.ts +11 -10
- package/dist/model/composite_source_utils.d.ts +1 -1
- package/dist/model/filter_compilers.d.ts +2 -2
- package/dist/model/malloy_query.d.ts +6 -6
- package/dist/model/materialization/utils.d.ts +1 -1
- package/dist/model/sql_block.d.ts +2 -2
- package/dist/model/utils.d.ts +1 -1
- package/dist/run_sql_options.d.ts +1 -1
- package/dist/to_stable.d.ts +2 -2
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Query } from '../../../model/malloy_types';
|
|
2
|
-
import { Source } from '../source-elements/source';
|
|
1
|
+
import type { Query } from '../../../model/malloy_types';
|
|
2
|
+
import type { Source } from '../source-elements/source';
|
|
3
3
|
import { MalloyElement } from '../types/malloy-element';
|
|
4
|
-
import { QueryComp } from '../types/query-comp';
|
|
5
|
-
import { QueryElement } from '../types/query-element';
|
|
4
|
+
import type { QueryComp } from '../types/query-comp';
|
|
5
|
+
import type { QueryElement } from '../types/query-element';
|
|
6
6
|
/**
|
|
7
7
|
* A query element which represents running the intrinsic fields of a
|
|
8
8
|
* source directly as a query. Currently this only works for SQL sources,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { ModelEntryReference } from '../types/malloy-element';
|
|
2
|
+
import { MalloyElement } from '../types/malloy-element';
|
|
3
|
+
import type { QueryComp } from '../types/query-comp';
|
|
4
|
+
import type { Query } from '../../../model/malloy_types';
|
|
5
|
+
import type { QueryElement } from '../types/query-element';
|
|
5
6
|
/**
|
|
6
7
|
* A query operation that is just a reference to an existing query.
|
|
7
8
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { QueryComp } from '../types/query-comp';
|
|
2
|
-
import { QueryElement } from '../types/query-element';
|
|
3
|
-
import { View } from '../view-elements/view';
|
|
1
|
+
import type { QueryComp } from '../types/query-comp';
|
|
2
|
+
import type { QueryElement } from '../types/query-element';
|
|
3
|
+
import type { View } from '../view-elements/view';
|
|
4
4
|
import { QueryBase } from './query-base';
|
|
5
5
|
/**
|
|
6
6
|
* A query operation that consists of an exisitng query with refinements.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { Dialect } from '../../../dialect/dialect';
|
|
2
|
-
import { Annotation, StructDef, TypeDesc, FieldDef, AtomicFieldDef, FieldDefType } from '../../../model/malloy_types';
|
|
3
|
-
import { ExprValue } from '../types/expr-value';
|
|
4
|
-
import { ExpressionDef } from '../types/expression-def';
|
|
5
|
-
import { FieldName, FieldSpace, QueryFieldSpace } from '../types/field-space';
|
|
6
|
-
import { LookupResult } from '../types/lookup-result';
|
|
1
|
+
import type { Dialect } from '../../../dialect/dialect';
|
|
2
|
+
import type { Annotation, StructDef, TypeDesc, FieldDef, AtomicFieldDef, FieldDefType } from '../../../model/malloy_types';
|
|
3
|
+
import type { ExprValue } from '../types/expr-value';
|
|
4
|
+
import type { ExpressionDef } from '../types/expression-def';
|
|
5
|
+
import type { FieldName, FieldSpace, QueryFieldSpace } from '../types/field-space';
|
|
6
|
+
import type { LookupResult } from '../types/lookup-result';
|
|
7
7
|
import { MalloyElement } from '../types/malloy-element';
|
|
8
|
-
import { MakeEntry, SpaceEntry } from '../types/space-entry';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { MakeEntry, SpaceEntry } from '../types/space-entry';
|
|
9
|
+
import type { Noteable } from '../types/noteable';
|
|
10
|
+
import { extendNoteMethod } from '../types/noteable';
|
|
11
|
+
import type { DynamicSpace } from '../field-space/dynamic-space';
|
|
11
12
|
import { SpaceField } from '../types/space-field';
|
|
12
13
|
export type FieldDeclarationConstructor = new (expr: ExpressionDef, defineName: string, exprSrc?: string) => AtomicFieldDeclaration;
|
|
13
14
|
export declare abstract class AtomicFieldDeclaration extends MalloyElement implements Noteable, MakeEntry {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Annotation, FieldDef, RefToField, TypeDesc } from '../../../model/malloy_types';
|
|
2
|
-
import { DynamicSpace } from '../field-space/dynamic-space';
|
|
1
|
+
import type { Annotation, FieldDef, RefToField, TypeDesc } from '../../../model/malloy_types';
|
|
2
|
+
import type { DynamicSpace } from '../field-space/dynamic-space';
|
|
3
3
|
import { DefinitionList } from '../types/definition-list';
|
|
4
|
-
import { FieldName, FieldSpace } from '../types/field-space';
|
|
5
|
-
import { LookupResult } from '../types/lookup-result';
|
|
4
|
+
import type { FieldName, FieldSpace } from '../types/field-space';
|
|
5
|
+
import type { LookupResult } from '../types/lookup-result';
|
|
6
6
|
import { ListOf, MalloyElement } from '../types/malloy-element';
|
|
7
|
-
import { Noteable
|
|
8
|
-
import {
|
|
7
|
+
import type { Noteable } from '../types/noteable';
|
|
8
|
+
import { extendNoteMethod } from '../types/noteable';
|
|
9
|
+
import type { MakeEntry } from '../types/space-entry';
|
|
9
10
|
export type FieldReferenceConstructor = new (names: FieldName[]) => FieldReference;
|
|
10
11
|
export declare abstract class FieldReference extends ListOf<FieldName> implements Noteable, MakeEntry {
|
|
11
12
|
readonly isNoteableObj = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TypeDesc } from '../../../model';
|
|
2
|
-
import { MalloyElement } from '../types/malloy-element';
|
|
1
|
+
import type { TypeDesc } from '../../../model';
|
|
2
|
+
import type { MalloyElement } from '../types/malloy-element';
|
|
3
3
|
export declare function typecheckProject(type: TypeDesc, logTo: MalloyElement): void;
|
|
4
4
|
export declare function typecheckIndex(type: TypeDesc, logTo: MalloyElement): void;
|
|
5
5
|
export declare function typecheckDimension(type: TypeDesc, logTo: MalloyElement): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DefinitionList } from '../types/definition-list';
|
|
2
|
-
import { QueryItem } from '../types/query-item';
|
|
3
|
-
import {
|
|
2
|
+
import type { QueryItem } from '../types/query-item';
|
|
3
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
4
|
+
import { LegalRefinementStage, QueryClass } from '../types/query-property-interface';
|
|
4
5
|
export declare class Aggregate extends DefinitionList<QueryItem> implements QueryPropertyInterface {
|
|
5
6
|
elementType: string;
|
|
6
7
|
readonly queryRefinementStage = LegalRefinementStage.Single;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DefinitionList } from '../types/definition-list';
|
|
2
|
-
import { QueryItem } from '../types/query-item';
|
|
3
|
-
import {
|
|
2
|
+
import type { QueryItem } from '../types/query-item';
|
|
3
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
4
|
+
import { LegalRefinementStage } from '../types/query-property-interface';
|
|
4
5
|
export declare class Calculate extends DefinitionList<QueryItem> implements QueryPropertyInterface {
|
|
5
6
|
elementType: string;
|
|
6
7
|
forceQueryClass: undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AccessModifierLabel } from '../../../model';
|
|
2
|
-
import { AtomicFieldDeclaration } from '../query-items/field-declaration';
|
|
1
|
+
import type { AccessModifierLabel } from '../../../model';
|
|
2
|
+
import type { AtomicFieldDeclaration } from '../query-items/field-declaration';
|
|
3
3
|
import { DefinitionList } from '../types/definition-list';
|
|
4
|
-
import { QueryBuilder } from '../types/query-builder';
|
|
5
|
-
import {
|
|
4
|
+
import type { QueryBuilder } from '../types/query-builder';
|
|
5
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
6
|
+
import { LegalRefinementStage } from '../types/query-property-interface';
|
|
6
7
|
export declare class DeclareFields extends DefinitionList<AtomicFieldDeclaration> implements QueryPropertyInterface {
|
|
7
8
|
readonly accessModifier: AccessModifierLabel | undefined;
|
|
8
9
|
elementType: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { QueryBuilder } from '../types/query-builder';
|
|
1
|
+
import type { QueryBuilder } from '../types/query-builder';
|
|
2
2
|
import { ListOf } from '../types/malloy-element';
|
|
3
|
-
import { QueryExtendProperty } from '../types/query-extend-property';
|
|
4
|
-
import {
|
|
3
|
+
import type { QueryExtendProperty } from '../types/query-extend-property';
|
|
4
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
5
|
+
import { LegalRefinementStage } from '../types/query-property-interface';
|
|
5
6
|
export declare class ExtendBlock extends ListOf<QueryExtendProperty> implements QueryPropertyInterface {
|
|
6
7
|
elementType: string;
|
|
7
8
|
forceQueryClass: undefined;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FilterCondition } from '../../../model/malloy_types';
|
|
2
|
-
import { ExpressionDef } from '../types/expression-def';
|
|
3
|
-
import { FieldSpace } from '../types/field-space';
|
|
1
|
+
import type { FilterCondition } from '../../../model/malloy_types';
|
|
2
|
+
import type { ExpressionDef } from '../types/expression-def';
|
|
3
|
+
import type { FieldSpace } from '../types/field-space';
|
|
4
4
|
import { ListOf, MalloyElement } from '../types/malloy-element';
|
|
5
|
-
import { QueryBuilder } from '../types/query-builder';
|
|
6
|
-
import {
|
|
5
|
+
import type { QueryBuilder } from '../types/query-builder';
|
|
6
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
7
|
+
import { LegalRefinementStage } from '../types/query-property-interface';
|
|
7
8
|
export declare class FilterElement extends MalloyElement {
|
|
8
9
|
readonly expr: ExpressionDef;
|
|
9
10
|
readonly exprSrc: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DefinitionList } from '../types/definition-list';
|
|
2
|
-
import { QueryItem } from '../types/query-item';
|
|
3
|
-
import { QueryPropertyInterface
|
|
2
|
+
import type { QueryItem } from '../types/query-item';
|
|
3
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
4
|
+
import { LegalRefinementStage, QueryClass } from '../types/query-property-interface';
|
|
4
5
|
export declare class GroupBy extends DefinitionList<QueryItem> implements QueryPropertyInterface {
|
|
5
6
|
elementType: string;
|
|
6
7
|
queryRefinementStage: LegalRefinementStage;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { FieldReferences } from '../query-items/field-references';
|
|
2
|
-
import { FieldName } from '../types/field-space';
|
|
1
|
+
import type { FieldReferences } from '../query-items/field-references';
|
|
2
|
+
import type { FieldName } from '../types/field-space';
|
|
3
3
|
import { MalloyElement } from '../types/malloy-element';
|
|
4
|
-
import {
|
|
4
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
5
|
+
import { QueryClass } from '../types/query-property-interface';
|
|
5
6
|
export declare class Index extends MalloyElement implements QueryPropertyInterface {
|
|
6
7
|
readonly fields: FieldReferences;
|
|
7
8
|
elementType: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MalloyElement } from '../types/malloy-element';
|
|
2
|
-
import {
|
|
2
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
3
|
+
import { LegalRefinementStage } from '../types/query-property-interface';
|
|
3
4
|
export declare class Limit extends MalloyElement implements QueryPropertyInterface {
|
|
4
5
|
readonly limit: number;
|
|
5
6
|
elementType: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as model from '../../../model/malloy_types';
|
|
2
|
-
import { FieldSpace } from '../types/field-space';
|
|
2
|
+
import type { FieldSpace } from '../types/field-space';
|
|
3
3
|
import { ViewFieldDeclaration } from '../source-properties/view-field-declaration';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
5
|
+
import { LegalRefinementStage, QueryClass } from '../types/query-property-interface';
|
|
6
|
+
import type { QueryBuilder } from '../types/query-builder';
|
|
6
7
|
export declare class NestFieldDeclaration extends ViewFieldDeclaration implements QueryPropertyInterface {
|
|
7
8
|
elementType: string;
|
|
8
9
|
queryRefinementStage: LegalRefinementStage;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DefinitionList } from '../types/definition-list';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
3
|
+
import { QueryClass, LegalRefinementStage } from '../types/query-property-interface';
|
|
4
|
+
import type { NestFieldDeclaration } from './nest';
|
|
4
5
|
export declare class Nests extends DefinitionList<NestFieldDeclaration> implements QueryPropertyInterface {
|
|
5
6
|
elementType: string;
|
|
6
7
|
queryRefinementStage: LegalRefinementStage;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { OrderBy as ModelOrderBy } from '../../../model/malloy_types';
|
|
2
|
-
import {
|
|
1
|
+
import type { OrderBy as ModelOrderBy } from '../../../model/malloy_types';
|
|
2
|
+
import type { FieldSpace } from '../types/field-space';
|
|
3
|
+
import { FieldName } from '../types/field-space';
|
|
3
4
|
import { ListOf, MalloyElement } from '../types/malloy-element';
|
|
4
|
-
import {
|
|
5
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
6
|
+
import { LegalRefinementStage } from '../types/query-property-interface';
|
|
5
7
|
export declare class OrderBy extends MalloyElement {
|
|
6
8
|
readonly field: number | FieldName;
|
|
7
9
|
readonly dir?: "asc" | "desc" | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DefinitionList } from '../types/definition-list';
|
|
2
|
-
import { QueryBuilder } from '../types/query-builder';
|
|
3
|
-
import { FieldCollectionMember } from '../types/field-collection-member';
|
|
4
|
-
import {
|
|
2
|
+
import type { QueryBuilder } from '../types/query-builder';
|
|
3
|
+
import type { FieldCollectionMember } from '../types/field-collection-member';
|
|
4
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
5
|
+
import { LegalRefinementStage, QueryClass } from '../types/query-property-interface';
|
|
5
6
|
export declare class ProjectStatement extends DefinitionList<FieldCollectionMember> implements QueryPropertyInterface {
|
|
6
7
|
elementType: string;
|
|
7
8
|
forceQueryClass: QueryClass;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PipeSegment } from '../../../model/malloy_types';
|
|
2
|
-
import { SourceFieldSpace } from '../types/field-space';
|
|
1
|
+
import type { PipeSegment } from '../../../model/malloy_types';
|
|
2
|
+
import type { SourceFieldSpace } from '../types/field-space';
|
|
3
3
|
import { ListOf } from '../types/malloy-element';
|
|
4
|
-
import { OpDesc } from '../types/op-desc';
|
|
5
|
-
import { QueryProperty } from '../types/query-property';
|
|
4
|
+
import type { OpDesc } from '../types/op-desc';
|
|
5
|
+
import type { QueryProperty } from '../types/query-property';
|
|
6
6
|
import { QueryClass } from '../types/query-property-interface';
|
|
7
|
-
import { QueryOperationSpace } from '../field-space/query-spaces';
|
|
7
|
+
import type { QueryOperationSpace } from '../field-space/query-spaces';
|
|
8
8
|
export declare class QOpDesc extends ListOf<QueryProperty> {
|
|
9
9
|
elementType: string;
|
|
10
10
|
opClass: QueryClass | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Sampling } from '../../../model/malloy_types';
|
|
1
|
+
import type { Sampling } from '../../../model/malloy_types';
|
|
2
2
|
import { MalloyElement } from '../types/malloy-element';
|
|
3
|
-
import {
|
|
3
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
4
|
+
import { LegalRefinementStage, QueryClass } from '../types/query-property-interface';
|
|
4
5
|
export declare class SampleProperty extends MalloyElement implements QueryPropertyInterface {
|
|
5
6
|
readonly sample: Sampling;
|
|
6
7
|
elementType: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PipeSegment } from '../../model';
|
|
2
|
-
import { MalloyElement } from './types/malloy-element';
|
|
1
|
+
import type { PipeSegment } from '../../model';
|
|
2
|
+
import type { MalloyElement } from './types/malloy-element';
|
|
3
3
|
export declare function detectAndRemovePartialStages(pipeline: PipeSegment[], logTo: MalloyElement): PipeSegment[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Annotation, SourceDef } from '../../../model/malloy_types';
|
|
2
|
-
import { HasParameter } from '../parameters/has-parameter';
|
|
1
|
+
import type { Annotation, SourceDef } from '../../../model/malloy_types';
|
|
2
|
+
import type { HasParameter } from '../parameters/has-parameter';
|
|
3
3
|
import { Source } from './source';
|
|
4
|
-
import { ParameterSpace } from '../field-space/parameter-space';
|
|
4
|
+
import type { ParameterSpace } from '../field-space/parameter-space';
|
|
5
5
|
/**
|
|
6
6
|
* A Source that is a virtual union of the fields of other sources, choosing
|
|
7
7
|
* the first source that has all the fields at query time.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Argument, InvokedStructRef, SourceDef } from '../../../model/malloy_types';
|
|
1
|
+
import type { Argument, InvokedStructRef, SourceDef } from '../../../model/malloy_types';
|
|
2
2
|
import { Source } from './source';
|
|
3
3
|
import { ModelEntryReference } from '../types/malloy-element';
|
|
4
|
-
import { Argument as HasArgument } from '../parameters/argument';
|
|
5
|
-
import { LogMessageOptions, MessageCode, MessageParameterType } from '../../parse-log';
|
|
4
|
+
import type { Argument as HasArgument } from '../parameters/argument';
|
|
5
|
+
import type { LogMessageOptions, MessageCode, MessageParameterType } from '../../parse-log';
|
|
6
6
|
import { ParameterSpace } from '../field-space/parameter-space';
|
|
7
|
-
import { HasParameter } from '../parameters/has-parameter';
|
|
7
|
+
import type { HasParameter } from '../parameters/has-parameter';
|
|
8
8
|
export declare class NamedSource extends Source {
|
|
9
9
|
readonly ref: ModelEntryReference | string;
|
|
10
10
|
readonly sourceArguments: Record<string, Argument> | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SourceDef } from '../../../model/malloy_types';
|
|
1
|
+
import type { SourceDef } from '../../../model/malloy_types';
|
|
2
2
|
import { Source } from './source';
|
|
3
|
-
import { QueryElement } from '../types/query-element';
|
|
4
|
-
import { ParameterSpace } from '../field-space/parameter-space';
|
|
5
|
-
import { HasParameter } from '../parameters/has-parameter';
|
|
3
|
+
import type { QueryElement } from '../types/query-element';
|
|
4
|
+
import type { ParameterSpace } from '../field-space/parameter-space';
|
|
5
|
+
import type { HasParameter } from '../parameters/has-parameter';
|
|
6
6
|
export declare class QuerySource extends Source {
|
|
7
7
|
readonly query: QueryElement;
|
|
8
8
|
elementType: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Annotation, SourceDef } from '../../../model/malloy_types';
|
|
2
|
-
import { HasParameter } from '../parameters/has-parameter';
|
|
3
|
-
import { SourceDesc } from '../types/source-desc';
|
|
1
|
+
import type { Annotation, SourceDef } from '../../../model/malloy_types';
|
|
2
|
+
import type { HasParameter } from '../parameters/has-parameter';
|
|
3
|
+
import type { SourceDesc } from '../types/source-desc';
|
|
4
4
|
import { Source } from './source';
|
|
5
5
|
import { ParameterSpace } from '../field-space/parameter-space';
|
|
6
|
-
import { IncludeItem } from '../source-query-elements/include-item';
|
|
6
|
+
import type { IncludeItem } from '../source-query-elements/include-item';
|
|
7
7
|
/**
|
|
8
8
|
* A Source made from a source reference and a set of refinements
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { InvokedStructRef, Parameter, SourceDef } from '../../../model/malloy_types';
|
|
1
|
+
import type { InvokedStructRef, Parameter, SourceDef } from '../../../model/malloy_types';
|
|
2
2
|
import { MalloyElement } from '../types/malloy-element';
|
|
3
|
-
import { HasParameter } from '../parameters/has-parameter';
|
|
4
|
-
import { ParameterSpace } from '../field-space/parameter-space';
|
|
3
|
+
import type { HasParameter } from '../parameters/has-parameter';
|
|
4
|
+
import type { ParameterSpace } from '../field-space/parameter-space';
|
|
5
5
|
/**
|
|
6
6
|
* A "Source" is a thing which you can run queries against. The main
|
|
7
7
|
* function of a source is to represent an eventual StructDef
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { InvokedStructRef, SourceDef } from '../../../model/malloy_types';
|
|
2
|
-
import { NeedCompileSQL, SQLSourceRequest } from '../../translate-response';
|
|
1
|
+
import type { InvokedStructRef, SourceDef } from '../../../model/malloy_types';
|
|
2
|
+
import type { NeedCompileSQL, SQLSourceRequest } from '../../translate-response';
|
|
3
3
|
import { Source } from './source';
|
|
4
|
-
import { SQLString } from '../sql-elements/sql-string';
|
|
5
|
-
import { ModelEntryReference, Document } from '../types/malloy-element';
|
|
4
|
+
import type { SQLString } from '../sql-elements/sql-string';
|
|
5
|
+
import type { ModelEntryReference, Document } from '../types/malloy-element';
|
|
6
6
|
export declare class SQLSource extends Source {
|
|
7
7
|
readonly connectionName: ModelEntryReference;
|
|
8
8
|
readonly select: SQLString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SourceDef } from '../../../model/malloy_types';
|
|
1
|
+
import type { SourceDef } from '../../../model/malloy_types';
|
|
2
2
|
import { Source } from './source';
|
|
3
|
-
import { ModelEntryReference } from '../types/malloy-element';
|
|
3
|
+
import type { ModelEntryReference } from '../types/malloy-element';
|
|
4
4
|
type TableInfo = {
|
|
5
5
|
tablePath: string;
|
|
6
6
|
connectionName?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldReferences } from '../query-items/field-references';
|
|
1
|
+
import type { FieldReferences } from '../query-items/field-references';
|
|
2
2
|
import { MalloyElement } from '../types/malloy-element';
|
|
3
3
|
export declare class FieldListEdit extends MalloyElement {
|
|
4
4
|
readonly edit: 'accept' | 'except';
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { Annotation, JoinFieldDef, JoinType, MatrixOperation, SourceDef, AccessModifierLabel } from '../../../model/malloy_types';
|
|
2
|
-
import { DynamicSpace } from '../field-space/dynamic-space';
|
|
1
|
+
import type { Annotation, JoinFieldDef, JoinType, MatrixOperation, SourceDef, AccessModifierLabel } from '../../../model/malloy_types';
|
|
2
|
+
import type { DynamicSpace } from '../field-space/dynamic-space';
|
|
3
3
|
import { DefinitionList } from '../types/definition-list';
|
|
4
|
-
import { QueryBuilder } from '../types/query-builder';
|
|
5
|
-
import { ExpressionDef } from '../types/expression-def';
|
|
6
|
-
import { FieldSpace } from '../types/field-space';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
4
|
+
import type { QueryBuilder } from '../types/query-builder';
|
|
5
|
+
import type { ExpressionDef } from '../types/expression-def';
|
|
6
|
+
import type { FieldSpace } from '../types/field-space';
|
|
7
|
+
import type { ModelEntryReference } from '../types/malloy-element';
|
|
8
|
+
import { MalloyElement } from '../types/malloy-element';
|
|
9
|
+
import type { Noteable } from '../types/noteable';
|
|
10
|
+
import { extendNoteMethod } from '../types/noteable';
|
|
11
|
+
import type { MakeEntry } from '../types/space-entry';
|
|
12
|
+
import type { SourceQueryElement } from '../source-query-elements/source-query-element';
|
|
13
|
+
import type { ParameterSpace } from '../field-space/parameter-space';
|
|
14
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
15
|
+
import { LegalRefinementStage } from '../types/query-property-interface';
|
|
13
16
|
export declare abstract class Join extends MalloyElement implements Noteable, MakeEntry {
|
|
14
17
|
abstract name: ModelEntryReference;
|
|
15
18
|
abstract structDef(parameterSpace: ParameterSpace): JoinFieldDef;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AccessModifierLabel } from '../../../model';
|
|
2
|
-
import { DynamicSpace } from '../field-space/dynamic-space';
|
|
3
|
-
import { FieldName } from '../types/field-space';
|
|
1
|
+
import type { AccessModifierLabel } from '../../../model';
|
|
2
|
+
import type { DynamicSpace } from '../field-space/dynamic-space';
|
|
3
|
+
import type { FieldName } from '../types/field-space';
|
|
4
4
|
import { ListOf, MalloyElement } from '../types/malloy-element';
|
|
5
|
-
import { MakeEntry } from '../types/space-entry';
|
|
5
|
+
import type { MakeEntry } from '../types/space-entry';
|
|
6
6
|
export declare class RenameField extends MalloyElement implements MakeEntry {
|
|
7
7
|
readonly newName: string;
|
|
8
8
|
readonly oldName: FieldName;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { QueryBuilder } from '../types/query-builder';
|
|
1
|
+
import type { QueryBuilder } from '../types/query-builder';
|
|
2
2
|
import { MalloyElement } from '../types/malloy-element';
|
|
3
|
-
import { QueryPropertyInterface } from '../types/query-property-interface';
|
|
3
|
+
import type { QueryPropertyInterface } from '../types/query-property-interface';
|
|
4
4
|
export declare class TimezoneStatement extends MalloyElement implements QueryPropertyInterface {
|
|
5
5
|
readonly tz: string;
|
|
6
6
|
elementType: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import * as model from '../../../model/malloy_types';
|
|
2
|
-
import { FieldSpace } from '../types/field-space';
|
|
1
|
+
import type * as model from '../../../model/malloy_types';
|
|
2
|
+
import type { FieldSpace } from '../types/field-space';
|
|
3
3
|
import { MalloyElement } from '../types/malloy-element';
|
|
4
|
-
import { DynamicSpace } from '../field-space/dynamic-space';
|
|
5
|
-
import { View } from '../view-elements/view';
|
|
6
|
-
import { Noteable
|
|
7
|
-
import {
|
|
4
|
+
import type { DynamicSpace } from '../field-space/dynamic-space';
|
|
5
|
+
import type { View } from '../view-elements/view';
|
|
6
|
+
import type { Noteable } from '../types/noteable';
|
|
7
|
+
import { extendNoteMethod } from '../types/noteable';
|
|
8
|
+
import type { MakeEntry } from '../types/space-entry';
|
|
8
9
|
export declare class ViewFieldDeclaration extends MalloyElement implements Noteable, MakeEntry {
|
|
9
10
|
readonly name: string;
|
|
10
11
|
readonly view: View;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ViewFieldDeclaration } from './view-field-declaration';
|
|
1
|
+
import type { ViewFieldDeclaration } from './view-field-declaration';
|
|
2
2
|
import { DefinitionList } from '../types/definition-list';
|
|
3
|
-
import { AccessModifierLabel } from '../../../model';
|
|
3
|
+
import type { AccessModifierLabel } from '../../../model';
|
|
4
4
|
export declare class Views extends DefinitionList<ViewFieldDeclaration> {
|
|
5
5
|
readonly accessModifier: AccessModifierLabel | undefined;
|
|
6
6
|
elementType: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { MalloyElement } from '../types/malloy-element';
|
|
2
|
-
import { AccessModifierFieldReference, FieldReference, WildcardFieldReference } from '../query-items/field-references';
|
|
3
|
-
import { Annotation } from '../../../model';
|
|
4
|
-
import {
|
|
2
|
+
import type { AccessModifierFieldReference, FieldReference, WildcardFieldReference } from '../query-items/field-references';
|
|
3
|
+
import type { Annotation } from '../../../model';
|
|
4
|
+
import type { Noteable } from '../types/noteable';
|
|
5
|
+
import { extendNoteMethod } from '../types/noteable';
|
|
5
6
|
export declare abstract class IncludeItem extends MalloyElement {
|
|
6
7
|
abstract kind: 'private' | 'public' | 'internal' | 'except' | undefined;
|
|
7
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { QueryElement } from '../types/query-element';
|
|
1
|
+
import type { QueryElement } from '../types/query-element';
|
|
2
2
|
import { MalloyElement } from '../types/malloy-element';
|
|
3
|
-
import { Source } from '../source-elements/source';
|
|
4
|
-
import { LogMessageOptions, MessageCode, MessageParameterType } from '../../parse-log';
|
|
3
|
+
import type { Source } from '../source-elements/source';
|
|
4
|
+
import type { LogMessageOptions, MessageCode, MessageParameterType } from '../../parse-log';
|
|
5
5
|
/**
|
|
6
6
|
* An AST element which can be treated as either a source or a query
|
|
7
7
|
* depending on context. For instance, an `SQReference` represents
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Source } from '../source-elements/source';
|
|
1
|
+
import type { Source } from '../source-elements/source';
|
|
2
2
|
import { SourceQueryElement } from './source-query-element';
|
|
3
|
-
import { View } from '../view-elements/view';
|
|
4
|
-
import { QueryElement } from '../types/query-element';
|
|
3
|
+
import type { View } from '../view-elements/view';
|
|
4
|
+
import type { QueryElement } from '../types/query-element';
|
|
5
5
|
/**
|
|
6
6
|
* An expression that adds a segment to a source or query.
|
|
7
7
|
* This generates a `QueryArrow`, which either creates a new query
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefinedSource } from '../source-elements/refined-source';
|
|
2
2
|
import { SourceQueryElement } from './source-query-element';
|
|
3
|
-
import { SourceDesc } from '../types/source-desc';
|
|
4
|
-
import { IncludeItem } from './include-item';
|
|
3
|
+
import type { SourceDesc } from '../types/source-desc';
|
|
4
|
+
import type { IncludeItem } from './include-item';
|
|
5
5
|
/**
|
|
6
6
|
* An element which represents adding source extensions to a
|
|
7
7
|
* query or source using the `extend` operator. This element
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ModelEntryReference } from '../types/malloy-element';
|
|
2
|
-
import { Source } from '../source-elements/source';
|
|
1
|
+
import type { ModelEntryReference } from '../types/malloy-element';
|
|
2
|
+
import type { Source } from '../source-elements/source';
|
|
3
3
|
import { SourceQueryElement } from './source-query-element';
|
|
4
|
-
import { QueryElement } from '../types/query-element';
|
|
5
|
-
import { Argument } from '../parameters/argument';
|
|
4
|
+
import type { QueryElement } from '../types/query-element';
|
|
5
|
+
import type { Argument } from '../parameters/argument';
|
|
6
6
|
/**
|
|
7
7
|
* A reference to either a source or a query.
|
|
8
8
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SourceQueryElement } from './source-query-element';
|
|
2
2
|
import { QuerySource } from '../source-elements/query-source';
|
|
3
3
|
import { QueryRefine } from '../query-elements/query-refine';
|
|
4
|
-
import { View } from '../view-elements/view';
|
|
4
|
+
import type { View } from '../view-elements/view';
|
|
5
5
|
/**
|
|
6
6
|
* An element which represents adding refinements to a query.
|
|
7
7
|
* Generates errors if the LHS can't be understood as a query.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SQLPhraseSegment } from '../../../model/malloy_types';
|
|
1
|
+
import type { SQLPhraseSegment } from '../../../model/malloy_types';
|
|
2
2
|
import { MalloyElement } from '../types/malloy-element';
|
|
3
3
|
import { SourceQueryElement } from '../source-query-elements/source-query-element';
|
|
4
4
|
type SQLStringSegment = string | SourceQueryElement;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Annotation } from '../../../model/malloy_types';
|
|
2
|
-
import { DocStatement, Document
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { Annotation } from '../../../model/malloy_types';
|
|
2
|
+
import type { DocStatement, Document } from '../types/malloy-element';
|
|
3
|
+
import { MalloyElement, DocStatementList } from '../types/malloy-element';
|
|
4
|
+
import type { Noteable } from '../types/noteable';
|
|
5
|
+
import { extendNoteMethod } from '../types/noteable';
|
|
6
|
+
import type { SourceQueryElement } from '../source-query-elements/source-query-element';
|
|
5
7
|
export declare class DefineQuery extends MalloyElement implements DocStatement, Noteable {
|
|
6
8
|
readonly name: string;
|
|
7
9
|
readonly queryExpr: SourceQueryElement;
|