@deepnote/database-integrations 1.2.0 → 1.2.2

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.js CHANGED
@@ -533,12 +533,12 @@ const getDatabricksSqlAlchemyInput = ({ httpPath, host, token, port, schema, cat
533
533
  catalog
534
534
  } },
535
535
  param_style: "pyformat",
536
- ssh_options: {
537
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
536
+ ssh_options: sshEnabled ? {
537
+ enabled: true,
538
538
  host: sshHost,
539
539
  port: sshPort,
540
540
  user: sshUser
541
- }
541
+ } : {}
542
542
  };
543
543
  };
544
544
  const getDremioSqlAlchemyInput = ({ port, host, token, schema, sshEnabled, sshHost, sshPort, sshUser }) => {
@@ -549,12 +549,12 @@ const getDremioSqlAlchemyInput = ({ port, host, token, schema, sshEnabled, sshHo
549
549
  url: url.href,
550
550
  params: {},
551
551
  param_style: "pyformat",
552
- ssh_options: {
553
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
552
+ ssh_options: sshEnabled ? {
553
+ enabled: true,
554
554
  host: sshHost,
555
555
  port: sshPort,
556
556
  user: sshUser
557
- }
557
+ } : {}
558
558
  };
559
559
  };
560
560
  const getSQLServerVar = ({ user, password, host, port, database, sshEnabled, sshHost, sshPort, sshUser }) => {
@@ -563,12 +563,12 @@ const getSQLServerVar = ({ user, password, host, port, database, sshEnabled, ssh
563
563
  url: `mssql+pymssql://${encodeURIComponent(user)}:${encodeURIComponent(password)}@${host}${portSuffix}/${database}`,
564
564
  params: {},
565
565
  param_style: "pyformat",
566
- ssh_options: {
567
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
566
+ ssh_options: sshEnabled ? {
567
+ enabled: true,
568
568
  host: sshHost,
569
569
  port: sshPort,
570
570
  user: sshUser
571
- }
571
+ } : {}
572
572
  };
573
573
  };
574
574
  const getPostgresSqlAlchemyInput = (integrationId, projectRootDirectory, { user, password, host, port, database, sshEnabled, sshHost, sshPort, sshUser, sslEnabled, caCertificateName }) => {
@@ -589,12 +589,12 @@ const getPostgresSqlAlchemyInput = (integrationId, projectRootDirectory, { user,
589
589
  }) : void 0
590
590
  } },
591
591
  param_style: "pyformat",
592
- ssh_options: {
593
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
592
+ ssh_options: sshEnabled ? {
593
+ enabled: true,
594
594
  host: sshHost,
595
595
  port: sshPort,
596
596
  user: sshUser
597
- }
597
+ } : {}
598
598
  };
599
599
  };
600
600
  const getRedshiftSqlAlchemyInput = (integrationId, projectRootDirectory, metadata) => {
@@ -617,12 +617,12 @@ const getRedshiftSqlAlchemyInput = (integrationId, projectRootDirectory, metadat
617
617
  }) : void 0
618
618
  } },
619
619
  param_style: "pyformat",
620
- ssh_options: {
621
- enabled: metadata.sshEnabled == null ? void 0 : String(metadata.sshEnabled),
620
+ ssh_options: metadata.sshEnabled ? {
621
+ enabled: true,
622
622
  host: metadata.sshHost,
623
623
  port: metadata.sshPort,
624
624
  user: metadata.sshUser
625
- }
625
+ } : {}
626
626
  };
627
627
  if (metadata.authMethod === AwsAuthMethods.IamRole && metadata.roleArn && metadata.roleExternalId) vars.iamParams = {
628
628
  integrationId,
@@ -649,12 +649,12 @@ const getMaterializePostgresSqlAlchemyInput = (integrationId, projectRootDirecto
649
649
  }) : void 0
650
650
  } },
651
651
  param_style: "pyformat",
652
- ssh_options: {
653
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
652
+ ssh_options: sshEnabled ? {
653
+ enabled: true,
654
654
  host: sshHost,
655
655
  port: sshPort,
656
656
  user: sshUser
657
- }
657
+ } : {}
658
658
  };
659
659
  };
660
660
  const getTrinoEnvVars = (integrationId, metadata, projectRootDirectory) => {
@@ -668,7 +668,7 @@ const getTrinoEnvVars = (integrationId, metadata, projectRootDirectory) => {
668
668
  caCertificateName: metadata.caCertificateName
669
669
  }) } : {}
670
670
  } },
671
- param_style: "pyformat"
671
+ param_style: "qmark"
672
672
  };
673
673
  };
674
674
  const getAthenaSqlAlchemyInput = ({ access_key_id, region, s3_output_path, secret_access_key, workgroup }) => {
@@ -702,12 +702,12 @@ const getClickHouseSqlAlchemyInput = (integrationId, projectRootDirectory, { use
702
702
  url: `clickhouse://${password ? `${encodeURIComponent(user)}:${encodeURIComponent(password)}` : encodeURIComponent(user)}@${host}${portSuffix}/${database}?${params.toString()}`,
703
703
  params: {},
704
704
  param_style: "pyformat",
705
- ssh_options: {
706
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
705
+ ssh_options: sshEnabled ? {
706
+ enabled: true,
707
707
  host: sshHost,
708
708
  port: sshPort,
709
709
  user: sshUser
710
- }
710
+ } : {}
711
711
  };
712
712
  };
713
713
  var BigQueryServiceAccountParseError = class extends Error {
@@ -768,12 +768,12 @@ const getMySqlSqlAlchemyInput = (integrationId, projectRootDirectory, { user, pa
768
768
  url: `mysql+pymysql://${encodeURIComponent(user)}:${encodeURIComponent(password)}@${host}${portSuffix}/${database}`,
769
769
  params: { connect_args: { ssl } },
770
770
  param_style: "pyformat",
771
- ssh_options: {
772
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
771
+ ssh_options: sshEnabled ? {
772
+ enabled: true,
773
773
  host: sshHost,
774
774
  port: sshPort,
775
775
  user: sshUser
776
- }
776
+ } : {}
777
777
  };
778
778
  };
779
779
  function getCACertificatePath({ projectRoot, integrationId, caCertificateName }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnote/database-integrations",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Deepnote database integration definitions",
5
5
  "keywords": [],
6
6
  "repository": {