Skip to content

Commit 7484f4e

Browse files
committed
Can get a snowflake type
1 parent 9aed7a0 commit 7484f4e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function add(argv, reset = false) {
5555
// DB credentials
5656
if (!reset) {
5757
url = await question(
58-
"PostgreSQL or MySQL Database URL (including username and password): "
58+
"PostgreSQL, MySQL, or Snowflake Database URL (including username and password): "
5959
);
6060
}
6161

lib/server.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ export function server(config, argv) {
2626
} = config;
2727

2828
const handler =
29-
type === "mysql" ? mysql(url) : type === "postgres" ? snowflake(url) : null;
29+
type === "mysql"
30+
? mysql(url)
31+
: type === "postgres"
32+
? postgres(url)
33+
: type === "snowflake"
34+
? snowflake(url)
35+
: null;
3036
if (!handler) {
3137
return exit(`Unknown database type: ${type}`);
3238
}

0 commit comments

Comments
 (0)