@malloydata/malloy 0.0.63-dev230731163034 → 0.0.63
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/index.d.ts +1 -1
- package/dist/malloy.js +0 -7
- package/dist/runtime_types.d.ts +2 -7
- package/dist/runtime_types.js +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type { LogMessage, TranslateResponse } from './lang';
|
|
|
5
5
|
export { Malloy, Runtime, AtomicFieldType, ConnectionRuntime, SingleConnectionRuntime, EmptyURLReader, InMemoryURLReader, FixedConnectionMap, MalloyError, JoinRelationship, SourceRelationship, DateTimeframe, TimestampTimeframe, Result, QueryMaterializer, CSVWriter, JSONWriter, Parse, DataWriter, Explore, } from './malloy';
|
|
6
6
|
export type { Model, PreparedQuery, PreparedResult, Field, AtomicField, ExploreField, QueryField, SortableField, DataArray, DataRecord, DataColumn, DataArrayOrRecord, ModelMaterializer, DocumentSymbol, DocumentHighlight, ResultJSON, PreparedResultMaterializer, SQLBlockMaterializer, ExploreMaterializer, WriteStream, SerializedExplore, } from './malloy';
|
|
7
7
|
export type { RunSQLOptions } from './run_sql_options';
|
|
8
|
-
export type { URLReader, InfoConnection, LookupConnection, Connection,
|
|
8
|
+
export type { URLReader, InfoConnection, LookupConnection, Connection, DialectProvider, QueryString, ModelString, QueryURL, ModelURL, PooledConnection, TestableConnection, PersistSQLResults, StreamingConnection, } from './runtime_types';
|
|
9
9
|
export type { Loggable } from './malloy';
|
|
10
10
|
export { toAsyncGenerator } from './connection_utils';
|
|
11
11
|
export { Tags, type MalloyTags, type MalloyTagProperties } from './tags';
|
package/dist/malloy.js
CHANGED
|
@@ -27,7 +27,6 @@ const lang_1 = require("./lang");
|
|
|
27
27
|
const model_1 = require("./model");
|
|
28
28
|
const luxon_1 = require("luxon");
|
|
29
29
|
const tags_1 = require("./tags");
|
|
30
|
-
const dialect_1 = require("./dialect");
|
|
31
30
|
class Malloy {
|
|
32
31
|
// TODO load from file built during release
|
|
33
32
|
static get version() {
|
|
@@ -1424,7 +1423,6 @@ class Runtime {
|
|
|
1424
1423
|
else {
|
|
1425
1424
|
connections = {
|
|
1426
1425
|
lookupConnection: () => Promise.resolve(arg),
|
|
1427
|
-
listConnections: () => [arg],
|
|
1428
1426
|
};
|
|
1429
1427
|
}
|
|
1430
1428
|
}
|
|
@@ -1436,11 +1434,6 @@ class Runtime {
|
|
|
1436
1434
|
}
|
|
1437
1435
|
this._urlReader = urlReader;
|
|
1438
1436
|
this._connections = connections;
|
|
1439
|
-
for (const connection of this._connections.listConnections()) {
|
|
1440
|
-
if (connection.providesDialect()) {
|
|
1441
|
-
(0, dialect_1.registerDialect)(connection.dialect());
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
1437
|
}
|
|
1445
1438
|
/**
|
|
1446
1439
|
* @return The `URLReader` for this runtime instance.
|
package/dist/runtime_types.d.ts
CHANGED
|
@@ -78,7 +78,6 @@ export interface Connection extends InfoConnection {
|
|
|
78
78
|
isPool(): this is PooledConnection;
|
|
79
79
|
canPersist(): this is PersistSQLResults;
|
|
80
80
|
canStream(): this is StreamingConnection;
|
|
81
|
-
providesDialect(): this is DialectProviderConnection;
|
|
82
81
|
close(): Promise<void>;
|
|
83
82
|
estimateQueryCost(sqlCommand: string): Promise<QueryRunStats>;
|
|
84
83
|
}
|
|
@@ -97,8 +96,8 @@ export interface StreamingConnection extends Connection {
|
|
|
97
96
|
rowLimit?: number;
|
|
98
97
|
}): AsyncIterableIterator<QueryDataRow>;
|
|
99
98
|
}
|
|
100
|
-
export
|
|
101
|
-
dialect
|
|
99
|
+
export declare abstract class DialectProvider {
|
|
100
|
+
constructor(dialect: Dialect);
|
|
102
101
|
}
|
|
103
102
|
/**
|
|
104
103
|
* A mapping of connection names to connections.
|
|
@@ -109,8 +108,4 @@ export interface LookupConnection<T extends InfoConnection> {
|
|
|
109
108
|
* @return A promise to a `Connection` for the connection named `connectionName`.
|
|
110
109
|
*/
|
|
111
110
|
lookupConnection(connectionName?: string): Promise<T>;
|
|
112
|
-
/**
|
|
113
|
-
* @return A list of registered connections.
|
|
114
|
-
*/
|
|
115
|
-
listConnections(): T[];
|
|
116
111
|
}
|
package/dist/runtime_types.js
CHANGED
|
@@ -22,4 +22,12 @@
|
|
|
22
22
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.DialectProvider = void 0;
|
|
26
|
+
const dialect_1 = require("./dialect");
|
|
27
|
+
class DialectProvider {
|
|
28
|
+
constructor(dialect) {
|
|
29
|
+
(0, dialect_1.registerDialect)(dialect);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.DialectProvider = DialectProvider;
|
|
25
33
|
//# sourceMappingURL=runtime_types.js.map
|