How to access the D1 without the Wrangler ?

I create the Worker via Cloudflare API and it is not possible to create wrangler.toml

The code contains:

addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)); }); ...

But how can I access the D1 database ?
Was this page helpful?