@deepnote/database-integrations 1.2.0 → 1.2.1

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.cjs CHANGED
@@ -557,12 +557,12 @@ const getDatabricksSqlAlchemyInput = ({ httpPath, host, token, port, schema, cat
557
557
  catalog
558
558
  } },
559
559
  param_style: "pyformat",
560
- ssh_options: {
561
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
560
+ ssh_options: sshEnabled ? {
561
+ enabled: true,
562
562
  host: sshHost,
563
563
  port: sshPort,
564
564
  user: sshUser
565
- }
565
+ } : {}
566
566
  };
567
567
  };
568
568
  const getDremioSqlAlchemyInput = ({ port, host, token, schema, sshEnabled, sshHost, sshPort, sshUser }) => {
@@ -573,12 +573,12 @@ const getDremioSqlAlchemyInput = ({ port, host, token, schema, sshEnabled, sshHo
573
573
  url: url.href,
574
574
  params: {},
575
575
  param_style: "pyformat",
576
- ssh_options: {
577
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
576
+ ssh_options: sshEnabled ? {
577
+ enabled: true,
578
578
  host: sshHost,
579
579
  port: sshPort,
580
580
  user: sshUser
581
- }
581
+ } : {}
582
582
  };
583
583
  };
584
584
  const getSQLServerVar = ({ user, password, host, port, database, sshEnabled, sshHost, sshPort, sshUser }) => {
@@ -587,12 +587,12 @@ const getSQLServerVar = ({ user, password, host, port, database, sshEnabled, ssh
587
587
  url: `mssql+pymssql://${encodeURIComponent(user)}:${encodeURIComponent(password)}@${host}${portSuffix}/${database}`,
588
588
  params: {},
589
589
  param_style: "pyformat",
590
- ssh_options: {
591
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
590
+ ssh_options: sshEnabled ? {
591
+ enabled: true,
592
592
  host: sshHost,
593
593
  port: sshPort,
594
594
  user: sshUser
595
- }
595
+ } : {}
596
596
  };
597
597
  };
598
598
  const getPostgresSqlAlchemyInput = (integrationId, projectRootDirectory, { user, password, host, port, database, sshEnabled, sshHost, sshPort, sshUser, sslEnabled, caCertificateName }) => {
@@ -613,12 +613,12 @@ const getPostgresSqlAlchemyInput = (integrationId, projectRootDirectory, { user,
613
613
  }) : void 0
614
614
  } },
615
615
  param_style: "pyformat",
616
- ssh_options: {
617
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
616
+ ssh_options: sshEnabled ? {
617
+ enabled: true,
618
618
  host: sshHost,
619
619
  port: sshPort,
620
620
  user: sshUser
621
- }
621
+ } : {}
622
622
  };
623
623
  };
624
624
  const getRedshiftSqlAlchemyInput = (integrationId, projectRootDirectory, metadata) => {
@@ -641,12 +641,12 @@ const getRedshiftSqlAlchemyInput = (integrationId, projectRootDirectory, metadat
641
641
  }) : void 0
642
642
  } },
643
643
  param_style: "pyformat",
644
- ssh_options: {
645
- enabled: metadata.sshEnabled == null ? void 0 : String(metadata.sshEnabled),
644
+ ssh_options: metadata.sshEnabled ? {
645
+ enabled: true,
646
646
  host: metadata.sshHost,
647
647
  port: metadata.sshPort,
648
648
  user: metadata.sshUser
649
- }
649
+ } : {}
650
650
  };
651
651
  if (metadata.authMethod === AwsAuthMethods.IamRole && metadata.roleArn && metadata.roleExternalId) vars.iamParams = {
652
652
  integrationId,
@@ -673,12 +673,12 @@ const getMaterializePostgresSqlAlchemyInput = (integrationId, projectRootDirecto
673
673
  }) : void 0
674
674
  } },
675
675
  param_style: "pyformat",
676
- ssh_options: {
677
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
676
+ ssh_options: sshEnabled ? {
677
+ enabled: true,
678
678
  host: sshHost,
679
679
  port: sshPort,
680
680
  user: sshUser
681
- }
681
+ } : {}
682
682
  };
683
683
  };
684
684
  const getTrinoEnvVars = (integrationId, metadata, projectRootDirectory) => {
@@ -726,12 +726,12 @@ const getClickHouseSqlAlchemyInput = (integrationId, projectRootDirectory, { use
726
726
  url: `clickhouse://${password ? `${encodeURIComponent(user)}:${encodeURIComponent(password)}` : encodeURIComponent(user)}@${host}${portSuffix}/${database}?${params.toString()}`,
727
727
  params: {},
728
728
  param_style: "pyformat",
729
- ssh_options: {
730
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
729
+ ssh_options: sshEnabled ? {
730
+ enabled: true,
731
731
  host: sshHost,
732
732
  port: sshPort,
733
733
  user: sshUser
734
- }
734
+ } : {}
735
735
  };
736
736
  };
737
737
  var BigQueryServiceAccountParseError = class extends Error {
@@ -792,12 +792,12 @@ const getMySqlSqlAlchemyInput = (integrationId, projectRootDirectory, { user, pa
792
792
  url: `mysql+pymysql://${encodeURIComponent(user)}:${encodeURIComponent(password)}@${host}${portSuffix}/${database}`,
793
793
  params: { connect_args: { ssl } },
794
794
  param_style: "pyformat",
795
- ssh_options: {
796
- enabled: sshEnabled == null ? void 0 : String(sshEnabled),
795
+ ssh_options: sshEnabled ? {
796
+ enabled: true,
797
797
  host: sshHost,
798
798
  port: sshPort,
799
799
  user: sshUser
800
- }
800
+ } : {}
801
801
  };
802
802
  };
803
803
  function getCACertificatePath({ projectRoot, integrationId, caCertificateName }) {
package/dist/index.d.cts CHANGED
@@ -712,6 +712,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
712
712
  caCertificateText: z$1.ZodOptional<z$1.ZodString>;
713
713
  }, "strip", z$1.ZodTypeAny, {
714
714
  connection_string: string;
715
+ options?: string | undefined;
715
716
  host?: string | undefined;
716
717
  user?: string | undefined;
717
718
  password?: string | undefined;
@@ -720,7 +721,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
720
721
  sshHost?: string | undefined;
721
722
  sshPort?: string | undefined;
722
723
  sshUser?: string | undefined;
723
- options?: string | undefined;
724
724
  port?: string | undefined;
725
725
  sslEnabled?: boolean | undefined;
726
726
  caCertificateName?: string | undefined;
@@ -729,6 +729,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
729
729
  prefix?: string | undefined;
730
730
  }, {
731
731
  connection_string: string;
732
+ options?: string | undefined;
732
733
  host?: string | undefined;
733
734
  user?: string | undefined;
734
735
  password?: string | undefined;
@@ -737,7 +738,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
737
738
  sshHost?: string | undefined;
738
739
  sshPort?: string | undefined;
739
740
  sshUser?: string | undefined;
740
- options?: string | undefined;
741
741
  port?: string | undefined;
742
742
  sslEnabled?: boolean | undefined;
743
743
  caCertificateName?: string | undefined;
@@ -752,6 +752,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
752
752
  name: string;
753
753
  metadata: {
754
754
  connection_string: string;
755
+ options?: string | undefined;
755
756
  host?: string | undefined;
756
757
  user?: string | undefined;
757
758
  password?: string | undefined;
@@ -760,7 +761,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
760
761
  sshHost?: string | undefined;
761
762
  sshPort?: string | undefined;
762
763
  sshUser?: string | undefined;
763
- options?: string | undefined;
764
764
  port?: string | undefined;
765
765
  sslEnabled?: boolean | undefined;
766
766
  caCertificateName?: string | undefined;
@@ -775,6 +775,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
775
775
  name: string;
776
776
  metadata: {
777
777
  connection_string: string;
778
+ options?: string | undefined;
778
779
  host?: string | undefined;
779
780
  user?: string | undefined;
780
781
  password?: string | undefined;
@@ -783,7 +784,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
783
784
  sshHost?: string | undefined;
784
785
  sshPort?: string | undefined;
785
786
  sshUser?: string | undefined;
786
- options?: string | undefined;
787
787
  port?: string | undefined;
788
788
  sslEnabled?: boolean | undefined;
789
789
  caCertificateName?: string | undefined;
@@ -2032,6 +2032,7 @@ declare const databaseMetadataSchemasByType: {
2032
2032
  caCertificateText: z.ZodOptional<z.ZodString>;
2033
2033
  }, "strip", z.ZodTypeAny, {
2034
2034
  connection_string: string;
2035
+ options?: string | undefined;
2035
2036
  host?: string | undefined;
2036
2037
  user?: string | undefined;
2037
2038
  password?: string | undefined;
@@ -2040,7 +2041,6 @@ declare const databaseMetadataSchemasByType: {
2040
2041
  sshHost?: string | undefined;
2041
2042
  sshPort?: string | undefined;
2042
2043
  sshUser?: string | undefined;
2043
- options?: string | undefined;
2044
2044
  port?: string | undefined;
2045
2045
  sslEnabled?: boolean | undefined;
2046
2046
  caCertificateName?: string | undefined;
@@ -2049,6 +2049,7 @@ declare const databaseMetadataSchemasByType: {
2049
2049
  prefix?: string | undefined;
2050
2050
  }, {
2051
2051
  connection_string: string;
2052
+ options?: string | undefined;
2052
2053
  host?: string | undefined;
2053
2054
  user?: string | undefined;
2054
2055
  password?: string | undefined;
@@ -2057,7 +2058,6 @@ declare const databaseMetadataSchemasByType: {
2057
2058
  sshHost?: string | undefined;
2058
2059
  sshPort?: string | undefined;
2059
2060
  sshUser?: string | undefined;
2060
- options?: string | undefined;
2061
2061
  port?: string | undefined;
2062
2062
  sslEnabled?: boolean | undefined;
2063
2063
  caCertificateName?: string | undefined;
@@ -2537,7 +2537,7 @@ interface SqlAlchemyInput {
2537
2537
  params: Record<string, unknown>;
2538
2538
  param_style: ParamStyle;
2539
2539
  ssh_options?: {
2540
- enabled?: string | undefined;
2540
+ enabled?: boolean | undefined;
2541
2541
  host?: string | undefined;
2542
2542
  port?: string | undefined;
2543
2543
  user?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -712,6 +712,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
712
712
  caCertificateText: z$1.ZodOptional<z$1.ZodString>;
713
713
  }, "strip", z$1.ZodTypeAny, {
714
714
  connection_string: string;
715
+ options?: string | undefined;
715
716
  host?: string | undefined;
716
717
  user?: string | undefined;
717
718
  password?: string | undefined;
@@ -720,7 +721,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
720
721
  sshHost?: string | undefined;
721
722
  sshPort?: string | undefined;
722
723
  sshUser?: string | undefined;
723
- options?: string | undefined;
724
724
  port?: string | undefined;
725
725
  sslEnabled?: boolean | undefined;
726
726
  caCertificateName?: string | undefined;
@@ -729,6 +729,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
729
729
  prefix?: string | undefined;
730
730
  }, {
731
731
  connection_string: string;
732
+ options?: string | undefined;
732
733
  host?: string | undefined;
733
734
  user?: string | undefined;
734
735
  password?: string | undefined;
@@ -737,7 +738,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
737
738
  sshHost?: string | undefined;
738
739
  sshPort?: string | undefined;
739
740
  sshUser?: string | undefined;
740
- options?: string | undefined;
741
741
  port?: string | undefined;
742
742
  sslEnabled?: boolean | undefined;
743
743
  caCertificateName?: string | undefined;
@@ -752,6 +752,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
752
752
  name: string;
753
753
  metadata: {
754
754
  connection_string: string;
755
+ options?: string | undefined;
755
756
  host?: string | undefined;
756
757
  user?: string | undefined;
757
758
  password?: string | undefined;
@@ -760,7 +761,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
760
761
  sshHost?: string | undefined;
761
762
  sshPort?: string | undefined;
762
763
  sshUser?: string | undefined;
763
- options?: string | undefined;
764
764
  port?: string | undefined;
765
765
  sslEnabled?: boolean | undefined;
766
766
  caCertificateName?: string | undefined;
@@ -775,6 +775,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
775
775
  name: string;
776
776
  metadata: {
777
777
  connection_string: string;
778
+ options?: string | undefined;
778
779
  host?: string | undefined;
779
780
  user?: string | undefined;
780
781
  password?: string | undefined;
@@ -783,7 +784,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
783
784
  sshHost?: string | undefined;
784
785
  sshPort?: string | undefined;
785
786
  sshUser?: string | undefined;
786
- options?: string | undefined;
787
787
  port?: string | undefined;
788
788
  sslEnabled?: boolean | undefined;
789
789
  caCertificateName?: string | undefined;
@@ -2032,6 +2032,7 @@ declare const databaseMetadataSchemasByType: {
2032
2032
  caCertificateText: z.ZodOptional<z.ZodString>;
2033
2033
  }, "strip", z.ZodTypeAny, {
2034
2034
  connection_string: string;
2035
+ options?: string | undefined;
2035
2036
  host?: string | undefined;
2036
2037
  user?: string | undefined;
2037
2038
  password?: string | undefined;
@@ -2040,7 +2041,6 @@ declare const databaseMetadataSchemasByType: {
2040
2041
  sshHost?: string | undefined;
2041
2042
  sshPort?: string | undefined;
2042
2043
  sshUser?: string | undefined;
2043
- options?: string | undefined;
2044
2044
  port?: string | undefined;
2045
2045
  sslEnabled?: boolean | undefined;
2046
2046
  caCertificateName?: string | undefined;
@@ -2049,6 +2049,7 @@ declare const databaseMetadataSchemasByType: {
2049
2049
  prefix?: string | undefined;
2050
2050
  }, {
2051
2051
  connection_string: string;
2052
+ options?: string | undefined;
2052
2053
  host?: string | undefined;
2053
2054
  user?: string | undefined;
2054
2055
  password?: string | undefined;
@@ -2057,7 +2058,6 @@ declare const databaseMetadataSchemasByType: {
2057
2058
  sshHost?: string | undefined;
2058
2059
  sshPort?: string | undefined;
2059
2060
  sshUser?: string | undefined;
2060
- options?: string | undefined;
2061
2061
  port?: string | undefined;
2062
2062
  sslEnabled?: boolean | undefined;
2063
2063
  caCertificateName?: string | undefined;
@@ -2537,7 +2537,7 @@ interface SqlAlchemyInput {
2537
2537
  params: Record<string, unknown>;
2538
2538
  param_style: ParamStyle;
2539
2539
  ssh_options?: {
2540
- enabled?: string | undefined;
2540
+ enabled?: boolean | undefined;
2541
2541
  host?: string | undefined;
2542
2542
  port?: string | undefined;
2543
2543
  user?: string | undefined;
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) => {
@@ -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.1",
4
4
  "description": "Deepnote database integration definitions",
5
5
  "keywords": [],
6
6
  "repository": {