ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 2,591
The
SQL files are imported as JavaScript strings:
Continue reading...
.sql file extension is now automatically configured to be importable in your Worker code when using Wrangler or the Cloudflare Vite plugin. This is particular useful for importing migrations in Durable Objects and means you no longer need to configure custom rules when using Drizzle ↗︎.SQL files are imported as JavaScript strings:
Code:
// `example` will be a JavaScript string
import example from "./example.sql";
Continue reading...