Skip to content

Commit 4e7eaa6

Browse files
feat: Add warning for using 'bun' driver in database connection messages
1 parent 6097644 commit 4e7eaa6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drizzle-kit/src/cli/connections.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ export const preparePostgresDB = async (
588588
console.error(
589589
"To connect to Postgres database - please install either of 'pg', 'postgres', 'bun', '@neondatabase/serverless' or '@vercel/postgres' drivers",
590590
);
591+
console.warn("For the 'bun' driver, run your script using: bun --bun");
591592
process.exit(1);
592593
};
593594

@@ -1000,6 +1001,7 @@ export const connectToMySQL = async (
10001001
console.error(
10011002
"To connect to MySQL database - please install either of 'mysql2', 'bun' or '@planetscale/database' drivers",
10021003
);
1004+
console.warn("For the 'bun' driver, run your script using: bun --bun");
10031005
process.exit(1);
10041006
};
10051007

@@ -1512,6 +1514,7 @@ export const connectToSQLite = async (
15121514
console.log(
15131515
"Please install either 'better-sqlite3', '@libsql/client' or 'bun' for Drizzle Kit to connect to SQLite databases",
15141516
);
1517+
console.warn("For the 'bun' driver, run your script using: bun --bun");
15151518
process.exit(1);
15161519
};
15171520

0 commit comments

Comments
 (0)