DT
Drizzle Teamโ€ข12mo ago
babakfp

What should I put inside `dbCredentials`? I'm using a local `.db` file with `better-sqlite3`

import type { Config } from "drizzle-kit"

export default {
schema: "./schema/*",
out: "./drizzle",
driver: "better-sqlite",
dbCredentials: {

},
} satisfies Config
import type { Config } from "drizzle-kit"

export default {
schema: "./schema/*",
out: "./drizzle",
driver: "better-sqlite",
dbCredentials: {

},
} satisfies Config
7 Replies
Revan
Revanโ€ข12mo ago
url: "database.sqlite"
George
Georgeโ€ข12mo ago
Drizzle ORM - next gen TypeScript ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
No description
Startup Spells ๐Ÿช„ Newsletter Guy
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
Startup Spells ๐Ÿช„ Newsletter Guy
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-paste
Startup Spells ๐Ÿช„ Newsletter Guy
this 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
Startup Spells ๐Ÿช„ Newsletter Guy
@babakfp โ˜๏ธ
babakfp
babakfpOPโ€ข11mo ago
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.
Want results from more Discord servers?
Add your server