@malloydata/malloy 0.0.120-dev240131223846 → 0.0.120

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 CHANGED
@@ -6,7 +6,7 @@ export { HighlightType, MalloyTranslator, } from './lang';
6
6
  export type { LogMessage, TranslateResponse } from './lang';
7
7
  export { Malloy, Runtime, AtomicFieldType, ConnectionRuntime, SingleConnectionRuntime, EmptyURLReader, InMemoryURLReader, FixedConnectionMap, MalloyError, JoinRelationship, SourceRelationship, DateTimeframe, TimestampTimeframe, PreparedResult, Result, QueryMaterializer, CSVWriter, JSONWriter, Parse, DataWriter, Explore, } from './malloy';
8
8
  export type { Model, PreparedQuery, Field, AtomicField, ExploreField, QueryField, SortableField, DataArray, DataRecord, DataColumn, DataArrayOrRecord, Loggable, ModelMaterializer, DocumentSymbol, DocumentHighlight, ResultJSON, PreparedResultMaterializer, SQLBlockMaterializer, ExploreMaterializer, WriteStream, SerializedExplore, } from './malloy';
9
- export type { RunSQLOptions } from './run_sql_options';
10
- export type { Connection, ConnectionConfig, ConnectionFactory, ConnectionParameter, ConnectionParameterValue, ConnectionConfigSchema, InfoConnection, LookupConnection, ModelString, ModelURL, FetchSchemaOptions, PersistSQLResults, PooledConnection, QueryString, QueryURL, TestableConnection, StreamingConnection, URLReader, } from './runtime_types';
9
+ export type { QueryOptionsReader, RunSQLOptions } from './run_sql_options';
10
+ export type { Connection, ConnectionConfig, ConnectionFactory, ConnectionParameter, ConnectionParameterValue, ConnectionConfigSchema, FetchSchemaOptions, InfoConnection, LookupConnection, ModelString, ModelURL, PersistSQLResults, PooledConnection, QueryString, QueryURL, TestableConnection, StreamingConnection, URLReader, } from './runtime_types';
11
11
  export { toAsyncGenerator } from './connection_utils';
12
12
  export { type TagParse, Tag, type TagDict } from './tags';
@@ -5,3 +5,4 @@ export interface RunSQLOptions {
5
5
  modelAnnotation?: Annotation;
6
6
  queryAnnotation?: Annotation;
7
7
  }
8
+ export type QueryOptionsReader = RunSQLOptions | (() => RunSQLOptions);
@@ -79,7 +79,10 @@ export interface ConnectionParameter {
79
79
  defaultValue?: ConnectionParameterValue;
80
80
  }
81
81
  export type ConnectionConfigSchema = ConnectionParameter[];
82
- export type ConnectionConfig = Record<string, ConnectionParameterValue>;
82
+ export interface ConnectionConfig {
83
+ name: string;
84
+ [key: string]: ConnectionParameterValue | undefined;
85
+ }
83
86
  export interface ConnectionFactory {
84
87
  connectionName: string;
85
88
  configSchema: ConnectionConfigSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.120-dev240131223846",
3
+ "version": "0.0.120",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",