Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
D1 Database Binding Issue - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
1 reply
landon
D1 Database Binding Issue
XPost from
d1-database
im on wrangler 3
.5
.1
TLDR
Ive created a binding named
DB
DB
but all the env contains is
__D1_BETA_DB
__D1_BETA_DB
that does not act like a db
.
Ive tried removed bindings
, re
-added
, re
-deployed still getting the same behavior
:
__D1_BETA_
__D1_BETA_
is being added as a prefix in the environment
, but not binding named
DB
DB
binding name: DB
env contains: __D1_BETA_DB
binding name: DB
env contains: __D1_BETA_DB
I tried to reference that variable
_
_D1
_BETA
_DB
, but it tells me that there is no function prepare on it
.
im expecting
(and this was previous behavior
) that a DB variable is hanging on the env that i can call prepare on
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
D1 database binding is visible, R2 binding is {} empty
CD
Cloudflare Developers / pages-help
3y ago
D1 binding + staticFormsPage
CD
Cloudflare Developers / pages-help
3y ago
Need help understanding D1 database example for binding
CD
Cloudflare Developers / pages-help
2y ago
Nuxt3 with D1 binding example
CD
Cloudflare Developers / pages-help
2y ago