@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.cjs +25 -25
- package/dist/index.d.cts +69 -69
- package/dist/index.d.ts +69 -69
- package/dist/index.js +25 -25
- package/package.json +1 -1
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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) => {
|
|
@@ -692,7 +692,7 @@ const getTrinoEnvVars = (integrationId, metadata, projectRootDirectory) => {
|
|
|
692
692
|
caCertificateName: metadata.caCertificateName
|
|
693
693
|
}) } : {}
|
|
694
694
|
} },
|
|
695
|
-
param_style: "
|
|
695
|
+
param_style: "qmark"
|
|
696
696
|
};
|
|
697
697
|
};
|
|
698
698
|
const getAthenaSqlAlchemyInput = ({ access_key_id, region, s3_output_path, secret_access_key, workgroup }) => {
|
|
@@ -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:
|
|
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:
|
|
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 }) {
|