@malloydata/malloy-tests 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/package.json +9 -9
- package/src/core/experimental-dialects.spec.ts +2 -3
- package/src/core/streaming.spec.ts +2 -6
- package/src/core/tags.spec.ts +2 -1
- package/src/databases/all/compound-atomic.spec.ts +1 -1
- package/src/databases/all/functions.spec.ts +1 -1
- package/src/databases/bigquery/handexpr.spec.ts +1 -1
- package/src/databases/bigquery/malloy_query.spec.ts +3 -2
- package/src/databases/bigquery/performance.skipped.spec.ts +1 -1
- package/src/databases/duckdb/reference-id.spec.ts +1 -1
- package/src/databases/duckdb/streaming.spec.ts +2 -1
- package/src/databases/postgres/postgres.spec.ts +1 -1
- package/src/databases/shared/test_list.ts +1 -1
- package/src/models/faa_model.ts +1 -1
- package/src/models/medicare_model.ts +2 -1
- package/src/render/render.spec.ts +1 -1
- package/src/runtimes.ts +4 -2
- package/src/util/db-jest-matchers.ts +3 -5
- package/src/util/index.ts +2 -2
package/package.json
CHANGED
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@jest/globals": "^29.4.3",
|
|
24
|
-
"@malloydata/db-bigquery": "^0.0.243-
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.243-
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.243-
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.243-
|
|
28
|
-
"@malloydata/db-trino": "^0.0.243-
|
|
29
|
-
"@malloydata/malloy": "^0.0.243-
|
|
30
|
-
"@malloydata/malloy-tag": "^0.0.243-
|
|
31
|
-
"@malloydata/render": "^0.0.243-
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.243-dev250314163430",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.243-dev250314163430",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.243-dev250314163430",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.243-dev250314163430",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.243-dev250314163430",
|
|
29
|
+
"@malloydata/malloy": "^0.0.243-dev250314163430",
|
|
30
|
+
"@malloydata/malloy-tag": "^0.0.243-dev250314163430",
|
|
31
|
+
"@malloydata/render": "^0.0.243-dev250314163430",
|
|
32
32
|
"events": "^3.3.0",
|
|
33
33
|
"jsdom": "^22.1.0",
|
|
34
34
|
"luxon": "^2.4.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@types/jsdom": "^21.1.1",
|
|
39
39
|
"@types/luxon": "^2.4.0"
|
|
40
40
|
},
|
|
41
|
-
"version": "0.0.243-
|
|
41
|
+
"version": "0.0.243-dev250314163430"
|
|
42
42
|
}
|
|
@@ -21,13 +21,12 @@
|
|
|
21
21
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {
|
|
25
|
-
DuckDBDialect,
|
|
24
|
+
import type {
|
|
26
25
|
FetchSchemaOptions,
|
|
27
26
|
MalloyError,
|
|
28
27
|
SQLSourceDef,
|
|
29
|
-
registerDialect,
|
|
30
28
|
} from '@malloydata/malloy';
|
|
29
|
+
import {DuckDBDialect, registerDialect} from '@malloydata/malloy';
|
|
31
30
|
import {testRuntimeFor} from '../runtimes';
|
|
32
31
|
import '../util/db-jest-matchers';
|
|
33
32
|
import {DuckDBConnection} from '@malloydata/db-duckdb';
|
|
@@ -21,12 +21,8 @@
|
|
|
21
21
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
DataRecord,
|
|
27
|
-
JSONWriter,
|
|
28
|
-
WriteStream,
|
|
29
|
-
} from '@malloydata/malloy';
|
|
24
|
+
import type {DataRecord, WriteStream} from '@malloydata/malloy';
|
|
25
|
+
import {CSVWriter, JSONWriter} from '@malloydata/malloy';
|
|
30
26
|
import {RuntimeList} from '../runtimes';
|
|
31
27
|
import {describeIfDatabaseAvailable} from '../util';
|
|
32
28
|
|
package/src/core/tags.spec.ts
CHANGED
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
import {annotationToTag} from '@malloydata/malloy';
|
|
25
|
-
import {TagDict
|
|
25
|
+
import type {TagDict} from '@malloydata/malloy-tag';
|
|
26
|
+
import {Tag} from '@malloydata/malloy-tag';
|
|
26
27
|
import {runtimeFor} from '../runtimes';
|
|
27
28
|
|
|
28
29
|
declare global {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import {RuntimeList, allDatabases} from '../../runtimes';
|
|
26
26
|
import {booleanResult, brokenIn, databasesFromEnvironmentOr} from '../../util';
|
|
27
27
|
import '../../util/db-jest-matchers';
|
|
28
|
-
import * as malloy from '@malloydata/malloy';
|
|
28
|
+
import type * as malloy from '@malloydata/malloy';
|
|
29
29
|
|
|
30
30
|
const runtimes = new RuntimeList(databasesFromEnvironmentOr(allDatabases));
|
|
31
31
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
/* eslint-disable no-console */
|
|
25
25
|
|
|
26
|
-
import {ModelDef, Query, StructDef} from '@malloydata/malloy';
|
|
26
|
+
import type {ModelDef, Query, StructDef} from '@malloydata/malloy';
|
|
27
27
|
import {describeIfDatabaseAvailable, fStringLike, fToQF} from '../../util';
|
|
28
28
|
|
|
29
29
|
import * as malloy from '@malloydata/malloy';
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
|
|
24
24
|
import {test} from '@jest/globals';
|
|
25
25
|
import * as malloy from '@malloydata/malloy';
|
|
26
|
-
import {Query} from '@malloydata/malloy';
|
|
26
|
+
import type {Query} from '@malloydata/malloy';
|
|
27
27
|
import {testModel} from '../../models/faa_model';
|
|
28
|
-
import {BigQueryTestConnection
|
|
28
|
+
import type {BigQueryTestConnection} from '../../runtimes';
|
|
29
|
+
import {RuntimeList} from '../../runtimes';
|
|
29
30
|
import {describeIfDatabaseAvailable, fStringEq, fToQF} from '../../util';
|
|
30
31
|
import '../../util/db-jest-matchers';
|
|
31
32
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import {RuntimeList} from '../../runtimes';
|
|
9
9
|
import '../../util/db-jest-matchers';
|
|
10
10
|
import {describeIfDatabaseAvailable} from '../../util';
|
|
11
|
-
import {Explore, Field} from '@malloydata/malloy';
|
|
11
|
+
import type {Explore, Field} from '@malloydata/malloy';
|
|
12
12
|
|
|
13
13
|
const [describe, databases] = describeIfDatabaseAvailable(['duckdb']);
|
|
14
14
|
const dbs = new RuntimeList(databases);
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {WriteStream
|
|
24
|
+
import type {WriteStream} from '@malloydata/malloy';
|
|
25
|
+
import {CSVWriter} from '@malloydata/malloy';
|
|
25
26
|
import {describeIfDatabaseAvailable} from '../../util';
|
|
26
27
|
import {RuntimeList} from '../../runtimes';
|
|
27
28
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/* eslint-disable no-console */
|
|
25
25
|
|
|
26
26
|
import {RuntimeList} from '../../runtimes';
|
|
27
|
-
import {AtomicField, Runtime} from '@malloydata/malloy';
|
|
27
|
+
import type {AtomicField, Runtime} from '@malloydata/malloy';
|
|
28
28
|
import {describeIfDatabaseAvailable} from '../../util';
|
|
29
29
|
import '../../util/db-jest-matchers';
|
|
30
30
|
import {DateTime} from 'luxon';
|
package/src/models/faa_model.ts
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {
|
|
24
|
+
import type {SourceDef} from '@malloydata/malloy';
|
|
25
|
+
import {composeSQLExpr} from '@malloydata/malloy';
|
|
25
26
|
import {fToQF} from '../util';
|
|
26
27
|
|
|
27
28
|
// will it build?
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {ModelMaterializer} from '@malloydata/malloy';
|
|
24
|
+
import type {ModelMaterializer} from '@malloydata/malloy';
|
|
25
25
|
import {RuntimeList, runtimeFor} from '../runtimes';
|
|
26
26
|
import {describeIfDatabaseAvailable} from '../util';
|
|
27
27
|
import {JSDOM} from 'jsdom';
|
package/src/runtimes.ts
CHANGED
|
@@ -21,17 +21,19 @@
|
|
|
21
21
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {
|
|
24
|
+
import type {
|
|
25
25
|
Connection,
|
|
26
26
|
MalloyQueryData,
|
|
27
27
|
QueryDataRow,
|
|
28
28
|
Result,
|
|
29
29
|
RunSQLOptions,
|
|
30
|
+
ModelCache,
|
|
31
|
+
} from '@malloydata/malloy';
|
|
32
|
+
import {
|
|
30
33
|
SingleConnectionRuntime,
|
|
31
34
|
InMemoryURLReader,
|
|
32
35
|
InMemoryModelCache,
|
|
33
36
|
CacheManager,
|
|
34
|
-
ModelCache,
|
|
35
37
|
} from '@malloydata/malloy';
|
|
36
38
|
import {BigQueryConnection} from '@malloydata/db-bigquery';
|
|
37
39
|
import {DuckDBConnection} from '@malloydata/db-duckdb';
|
|
@@ -22,17 +22,15 @@
|
|
|
22
22
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import {
|
|
25
|
+
import type {
|
|
26
26
|
ModelMaterializer,
|
|
27
27
|
QueryMaterializer,
|
|
28
28
|
Result,
|
|
29
29
|
Runtime,
|
|
30
|
-
MalloyError,
|
|
31
30
|
LogMessage,
|
|
32
|
-
SingleConnectionRuntime,
|
|
33
|
-
API,
|
|
34
31
|
} from '@malloydata/malloy';
|
|
35
|
-
import {
|
|
32
|
+
import {MalloyError, SingleConnectionRuntime, API} from '@malloydata/malloy';
|
|
33
|
+
import type {Tag} from '@malloydata/malloy-tag';
|
|
36
34
|
import EventEmitter from 'events';
|
|
37
35
|
import {inspect} from 'util';
|
|
38
36
|
|
package/src/util/index.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {
|
|
24
|
+
import type {
|
|
25
25
|
FilterCondition,
|
|
26
26
|
QueryFieldDef,
|
|
27
27
|
IndexFieldDef,
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
Result,
|
|
30
30
|
Runtime,
|
|
31
31
|
Expr,
|
|
32
|
-
composeSQLExpr,
|
|
33
32
|
} from '@malloydata/malloy';
|
|
33
|
+
import {composeSQLExpr} from '@malloydata/malloy';
|
|
34
34
|
export * from '@malloydata/malloy/test';
|
|
35
35
|
|
|
36
36
|
// these two helper functions are here just to make older hand built models
|