What should I put inside `dbCredentials`? I'm using a local `.db` file with `better-sqlite3`
7 Replies
url: "database.sqlite"
Docs are pretty clear:
https://orm.drizzle.team/kit-docs/config-reference#dbcredentials
Drizzle ORM - next gen TypeScript ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
docs are clear. if you still need help, just open the code in here -> https://github.com/drizzle-team/drizzle-orm/tree/main/examples
GitHub
drizzle-orm/examples at main ยท 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 ๐
- drizzle-team/drizzle-orm
or pro-tip is to use https://github.com/search or https://sourcegraph.com with your code. if you search for
drizzle-kit AND better-sqlite3
on any of those platforms, you'll see the code you want. then just copy-pastethis should help as i use just code search to learn usage of libraries -> https://sourcegraph.com/blog/how-to-search-cheat-sheet
Sourcegraph
How to search code with Sourcegraph โ a cheat sheet
A guide to help you get up to speed with Sourcegraph's commands quickly
@babakfp โ๏ธ
Thanks to everyone ๐ธ. It worked.
I also got to deal with this issue (this resolved too): https://discord.com/channels/1043890932593987624/1204842928598425690
It's not about docs being clear or not, it's about I couldn't find what I was looking for, things were confusing and I honestly had the worst time of reading a documentation.
Why a property that holds a path to a file is named
url
? This is the worst thing they could name it.