@malloydata/malloy 0.0.22-dev230126015148 → 0.0.22-dev230206094309

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.
Files changed (93) hide show
  1. package/package.json +2 -2
  2. package/dist/connection_utils.d.ts +0 -1
  3. package/dist/connection_utils.js +0 -66
  4. package/dist/dialect/dialect.d.ts +0 -66
  5. package/dist/dialect/dialect.js +0 -85
  6. package/dist/dialect/dialect_map.d.ts +0 -3
  7. package/dist/dialect/dialect_map.js +0 -45
  8. package/dist/dialect/duckdb.d.ts +0 -52
  9. package/dist/dialect/duckdb.js +0 -364
  10. package/dist/dialect/index.d.ts +0 -6
  11. package/dist/dialect/index.js +0 -37
  12. package/dist/dialect/postgres.d.ts +0 -52
  13. package/dist/dialect/postgres.js +0 -330
  14. package/dist/dialect/standardsql.d.ts +0 -49
  15. package/dist/dialect/standardsql.js +0 -381
  16. package/dist/index.d.ts +0 -10
  17. package/dist/index.js +0 -59
  18. package/dist/lang/ast/apply-expr.d.ts +0 -3
  19. package/dist/lang/ast/apply-expr.js +0 -34
  20. package/dist/lang/ast/ast-expr.d.ts +0 -206
  21. package/dist/lang/ast/ast-expr.js +0 -781
  22. package/dist/lang/ast/ast-main.d.ts +0 -915
  23. package/dist/lang/ast/ast-main.js +0 -3672
  24. package/dist/lang/ast/ast-time-expr.d.ts +0 -69
  25. package/dist/lang/ast/ast-time-expr.js +0 -389
  26. package/dist/lang/ast/ast-types.d.ts +0 -83
  27. package/dist/lang/ast/ast-types.js +0 -225
  28. package/dist/lang/ast/index.d.ts +0 -5
  29. package/dist/lang/ast/index.js +0 -44
  30. package/dist/lang/ast/time-utils.d.ts +0 -9
  31. package/dist/lang/ast/time-utils.js +0 -104
  32. package/dist/lang/field-utils.d.ts +0 -5
  33. package/dist/lang/field-utils.js +0 -43
  34. package/dist/lang/index.d.ts +0 -9
  35. package/dist/lang/index.js +0 -32
  36. package/dist/lang/lib/Malloy/MalloyLexer.d.ts +0 -165
  37. package/dist/lang/lib/Malloy/MalloyLexer.js +0 -1232
  38. package/dist/lang/lib/Malloy/MalloyParser.d.ts +0 -1947
  39. package/dist/lang/lib/Malloy/MalloyParser.js +0 -11909
  40. package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +0 -2022
  41. package/dist/lang/lib/Malloy/MalloyParserListener.js +0 -4
  42. package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +0 -1274
  43. package/dist/lang/lib/Malloy/MalloyParserVisitor.js +0 -4
  44. package/dist/lang/parse-log.d.ts +0 -27
  45. package/dist/lang/parse-log.js +0 -51
  46. package/dist/lang/parse-malloy.d.ts +0 -236
  47. package/dist/lang/parse-malloy.js +0 -746
  48. package/dist/lang/parse-to-ast.d.ts +0 -155
  49. package/dist/lang/parse-to-ast.js +0 -990
  50. package/dist/lang/parse-tree-walkers/document-completion-walker.d.ts +0 -10
  51. package/dist/lang/parse-tree-walkers/document-completion-walker.js +0 -148
  52. package/dist/lang/parse-tree-walkers/document-help-context-walker.d.ts +0 -9
  53. package/dist/lang/parse-tree-walkers/document-help-context-walker.js +0 -107
  54. package/dist/lang/parse-tree-walkers/document-highlight-walker.d.ts +0 -83
  55. package/dist/lang/parse-tree-walkers/document-highlight-walker.js +0 -385
  56. package/dist/lang/parse-tree-walkers/document-symbol-walker.d.ts +0 -11
  57. package/dist/lang/parse-tree-walkers/document-symbol-walker.js +0 -182
  58. package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +0 -34
  59. package/dist/lang/parse-tree-walkers/explore-query-walker.js +0 -74
  60. package/dist/lang/parse-tree-walkers/find-external-references.d.ts +0 -11
  61. package/dist/lang/parse-tree-walkers/find-external-references.js +0 -61
  62. package/dist/lang/reference-list.d.ts +0 -10
  63. package/dist/lang/reference-list.js +0 -90
  64. package/dist/lang/space-field.d.ts +0 -17
  65. package/dist/lang/space-field.js +0 -127
  66. package/dist/lang/test/document-help-context-walker.spec.d.ts +0 -1
  67. package/dist/lang/test/document-help-context-walker.spec.js +0 -55
  68. package/dist/lang/test/document-symbol-walker.spec.d.ts +0 -1
  69. package/dist/lang/test/document-symbol-walker.spec.js +0 -110
  70. package/dist/lang/test/field-symbols.spec.d.ts +0 -1
  71. package/dist/lang/test/field-symbols.spec.js +0 -180
  72. package/dist/lang/test/parse.spec.d.ts +0 -14
  73. package/dist/lang/test/parse.spec.js +0 -2134
  74. package/dist/lang/test/test-translator.d.ts +0 -38
  75. package/dist/lang/test/test-translator.js +0 -344
  76. package/dist/lang/zone.d.ts +0 -57
  77. package/dist/lang/zone.js +0 -107
  78. package/dist/malloy.d.ts +0 -1146
  79. package/dist/malloy.js +0 -2413
  80. package/dist/model/index.d.ts +0 -2
  81. package/dist/model/index.js +0 -45
  82. package/dist/model/malloy_query.d.ts +0 -351
  83. package/dist/model/malloy_query.js +0 -3174
  84. package/dist/model/malloy_types.d.ts +0 -551
  85. package/dist/model/malloy_types.js +0 -378
  86. package/dist/model/sql_block.d.ts +0 -7
  87. package/dist/model/sql_block.js +0 -56
  88. package/dist/model/utils.d.ts +0 -22
  89. package/dist/model/utils.js +0 -102
  90. package/dist/run_sql_options.d.ts +0 -3
  91. package/dist/run_sql_options.js +0 -25
  92. package/dist/runtime_types.d.ts +0 -105
  93. package/dist/runtime_types.js +0 -25
@@ -1,105 +0,0 @@
1
- import { RunSQLOptions } from "./run_sql_options";
2
- import { MalloyQueryData, QueryDataRow, SQLBlock, StructDef } from "./model/malloy_types";
3
- /**
4
- * The contents of a Malloy query document.
5
- */
6
- export declare type QueryString = string;
7
- /**
8
- * The contents of a Malloy model document.
9
- */
10
- export declare type ModelString = string;
11
- /**
12
- * A URL whose contents is a Malloy model.
13
- */
14
- export declare type ModelURL = URL;
15
- /**
16
- * A URL whose contents is a Malloy query.
17
- */
18
- export declare type QueryURL = URL;
19
- /**
20
- * An object capable of reading the contents of a URL in some context.
21
- */
22
- export interface URLReader {
23
- /**
24
- * Read the contents of the given URL.
25
- *
26
- * @param url The URL to read.
27
- * @returns A promise to the contents of the URL.
28
- */
29
- readURL: (url: URL) => Promise<string>;
30
- }
31
- /**
32
- * An object capable of reading schemas for given table names.
33
- */
34
- export interface InfoConnection {
35
- /**
36
- * Fetch schemas for multiple tables.
37
- *
38
- * @param tables The names of tables to fetch schemas for.
39
- * @returns A mapping of table names to schemas.
40
- */
41
- fetchSchemaForTables(tables: string[]): Promise<{
42
- schemas: Record<string, StructDef>;
43
- errors: Record<string, string>;
44
- }>;
45
- /**
46
- * Fetch schemas an SQL blocks
47
- *
48
- * @param block The SQL blocks to fetch schemas for.
49
- * @returns A mapping of SQL block names to schemas.
50
- */
51
- fetchSchemaForSQLBlock(block: SQLBlock): Promise<{
52
- structDef: StructDef;
53
- error?: undefined;
54
- } | {
55
- error: string;
56
- structDef?: undefined;
57
- }>;
58
- /**
59
- * The name of the connection.
60
- */
61
- get name(): string;
62
- }
63
- /**
64
- * An object capable of running SQL.
65
- */
66
- export interface Connection extends InfoConnection {
67
- /**
68
- * Run some SQL and yield results.
69
- *
70
- * @param sql The SQL to run.
71
- * @param options.pageSize Maximum number of results to return at once.
72
- * @returns The rows of data resulting from running the given SQL query
73
- * and the total number of rows available.
74
- */
75
- runSQL(sql: string, options?: RunSQLOptions): Promise<MalloyQueryData>;
76
- isPool(): this is PooledConnection;
77
- canPersist(): this is PersistSQLResults;
78
- canStream(): this is StreamingConnection;
79
- close(): Promise<void>;
80
- }
81
- export interface TestableConnection extends Connection {
82
- test(): Promise<void>;
83
- }
84
- export interface PooledConnection extends Connection {
85
- drain(): Promise<void>;
86
- isPool(): true;
87
- }
88
- export interface PersistSQLResults extends Connection {
89
- manifestTemporaryTable(sqlCommand: string): Promise<string>;
90
- }
91
- export interface StreamingConnection extends Connection {
92
- runSQLStream(sqlCommand: string, options?: {
93
- rowLimit?: number;
94
- }): AsyncIterableIterator<QueryDataRow>;
95
- }
96
- /**
97
- * A mapping of connection names to connections.
98
- */
99
- export interface LookupConnection<T extends InfoConnection> {
100
- /**
101
- * @param connectionName The name of the connection for which a `Connection` is required.
102
- * @returns A promise to a `Connection` for the connection named `connectionName`.
103
- */
104
- lookupConnection(connectionName?: string): Promise<T>;
105
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2023 Google LLC
4
- *
5
- * Permission is hereby granted, free of charge, to any person obtaining
6
- * a copy of this software and associated documentation files
7
- * (the "Software"), to deal in the Software without restriction,
8
- * including without limitation the rights to use, copy, modify, merge,
9
- * publish, distribute, sublicense, and/or sell copies of the Software,
10
- * and to permit persons to whom the Software is furnished to do so,
11
- * subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be
14
- * included in all copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
- */
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- //# sourceMappingURL=runtime_types.js.map