drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
21.52k stars 487 forks source link

[BUG]: database url not parsing password properly #2380

Open skusez opened 1 month ago

skusez commented 1 month ago

What version of drizzle-orm are you using?

0.30.10

What version of drizzle-kit are you using?

0.21.4

Describe the Bug

Creating random secure passwords using openssl is pretty common

openssl rand -base64 32

e.g result: 1kgABjxw/K6lg/jsjztzsK0FD8dVgUDxwo03ovjGinc=

The "/" character seems to break the way passwords get parsed.

Took me a while scratching my head wondering what was happening. The error that gets thrown from drizzle-kit: 'ERR_INVALID_URL'

Expected behavior

Password should be parsed successfully or clearer error message

Environment & setup

No response