How do I bind my D1 data base to the app?

Hey All: just staring out with workers. Trying to get my first application linked with D1. I did create a binding however unable to bind it from the wrangler.tomlfile.
No description
No description
2 Replies
Beny
Beny8mo ago
If you are using typescript the type should be D1Database
export interface Env {
DB: D1Database
}
export interface Env {
DB: D1Database
}
anureddy11
anureddy11OP8mo ago
Thaks just figured as well!
Want results from more Discord servers?
Add your server