@malloydata/malloy 0.0.75 → 0.0.76

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,6 +6,6 @@ export { Malloy, Runtime, AtomicFieldType, ConnectionRuntime, SingleConnectionRu
6
6
  export type { Model, PreparedQuery, PreparedResult, Field, AtomicField, ExploreField, QueryField, SortableField, DataArray, DataRecord, DataColumn, DataArrayOrRecord, Loggable, ModelMaterializer, DocumentSymbol, DocumentHighlight, ResultJSON, PreparedResultMaterializer, SQLBlockMaterializer, ExploreMaterializer, WriteStream, SerializedExplore, } from './malloy';
7
7
  export type { RunSQLOptions } from './run_sql_options';
8
8
  export { DialectProvider } from './runtime_types';
9
- export type { URLReader, InfoConnection, LookupConnection, Connection, QueryString, ModelString, QueryURL, ModelURL, PooledConnection, TestableConnection, PersistSQLResults, StreamingConnection, } from './runtime_types';
9
+ export type { Connection, ConnectionConfig, ConnectionFactory, ConnectionParameter, ConnectionParameterValue, ConnectionConfigSchema, InfoConnection, LookupConnection, ModelString, ModelURL, PersistSQLResults, PooledConnection, QueryString, QueryURL, TestableConnection, StreamingConnection, URLReader, } from './runtime_types';
10
10
  export { toAsyncGenerator } from './connection_utils';
11
11
  export { type TagParse, Tag, type TagDict } from './tags';
@@ -62,6 +62,21 @@ export interface InfoConnection {
62
62
  */
63
63
  get name(): string;
64
64
  }
65
+ export declare type ConnectionParameterValue = string | number | boolean;
66
+ export interface ConnectionParameter {
67
+ name: string;
68
+ type: 'string' | 'number' | 'boolean';
69
+ isOptional?: boolean;
70
+ isSecret?: boolean;
71
+ defaultValue?: ConnectionParameterValue;
72
+ }
73
+ export declare type ConnectionConfigSchema = ConnectionParameter[];
74
+ export declare type ConnectionConfig = Record<string, ConnectionParameterValue>;
75
+ export interface ConnectionFactory {
76
+ connectionName: string;
77
+ configSchema: ConnectionConfigSchema;
78
+ createConnection(connectionConfig: ConnectionConfig, dialectRegistrar?: (dialect: Dialect) => void): Connection & TestableConnection;
79
+ }
65
80
  /**
66
81
  * An object capable of running SQL.
67
82
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",