I would like to use drizzle for migrations. I need to setup my drizzle.config.local to something like this:
import { defineConfig } from 'drizzle-kit'
export default defineConfig({
dbCredentials: {
url: '', // 👈 this could also be a path to the local sqlite file
}
})
The issue I have is that the db name changes anytime I simply delete it (often in dev). Is there a way to set a fixed db name or somehow get the db name easily?
I would like to use
drizzle
for migrations. I need to setup mydrizzle.config.local
to something like this:The issue I have is that the
db
name changes anytime I simply delete it (often in dev). Is there a way to set a fixed db name or somehow get the db name easily?