Durable Object example weird import
Here in thd docs https://orm.drizzle.team/docs/connect-cloudflare-do
There is the following import
import migrations from '../drizzle/migrations';
which i dont get?
Inside my drizzle folder i have the migration files .sql and a meta folder. Where does the migrations file come from?
I did see the
We need rules so we can import migrations in the next steps
```toml
[[rules]]
type = "Text"
globs = ["**/.sql"]
fallthrough = true
```
But do i need to run some command first?Drizzle ORM - Cloudflare Durable Objects
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
9 Replies
On github i do see people with a file that looks like
but is this supposed to be generated somehow?
yes - you need a drizzle.config.ts that looks like this:
then run drizzle-kit generate
this will create that file
oh i see makes sense thanks!
even tho i think i will still need to adjust it because of this weird vite setup i got :P

i wonder if theres any downside of adding ?raw by default but i will see
im sure theres a more elegant way of doing this by specifying something for it to count .sql files as text in the vite config
fair enough thanks! gotta get the other stuff working first tho
nevermind its not that option don't use it