@malloydata/db-trino 0.0.240-dev250308020308 → 0.0.240-dev250311202829

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.
@@ -1,5 +1,6 @@
1
1
  import { ConnectionConfig, MalloyQueryData, PersistSQLResults, QueryData, QueryOptionsReader, QueryRunStats, RunSQLOptions, TrinoDialect, StructDef, TableSourceDef, SQLSourceDef, AtomicTypeDef, Dialect, FieldDef, TestableConnection, SQLSourceRequest } from '@malloydata/malloy';
2
2
  import { BaseConnection } from '@malloydata/malloy/connection';
3
+ import { ConnectionOptions } from 'trino-client';
3
4
  export interface TrinoManagerOptions {
4
5
  credentials?: {
5
6
  clientId: string;
@@ -16,6 +17,7 @@ export interface TrinoConnectionConfiguration {
16
17
  schema?: string;
17
18
  user?: string;
18
19
  password?: string;
20
+ extraConfig?: Partial<Omit<ConnectionOptions, keyof TrinoConnectionConfiguration>>;
19
21
  }
20
22
  export type TrinoConnectionOptions = ConnectionConfig;
21
23
  export interface BaseRunner {
@@ -71,6 +71,7 @@ class PrestoRunner {
71
71
  class TrinoRunner {
72
72
  constructor(config) {
73
73
  this.client = trino_client_1.Trino.create({
74
+ ...config.extraConfig,
74
75
  catalog: config.catalog,
75
76
  server: config.server,
76
77
  schema: config.schema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-trino",
3
- "version": "0.0.240-dev250308020308",
3
+ "version": "0.0.240-dev250311202829",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "prepublishOnly": "npm run build"
23
23
  },
24
24
  "dependencies": {
25
- "@malloydata/malloy": "^0.0.240-dev250308020308",
25
+ "@malloydata/malloy": "^0.0.240-dev250311202829",
26
26
  "@prestodb/presto-js-client": "^1.0.0",
27
27
  "gaxios": "^4.2.0",
28
28
  "trino-client": "^0.2.2"