i can get this prefix too, in toml and dashboard, i set DB binding, but when i log the env, there is a prefix __D1BETA, i use wrangler@3.4 solved problem
A full query console for Cloudflare's D1 database product. - GitHub - isaac-mcfadyen/d1-console: A full query console for Cloudflare's D1 database product.
same here Trace: Error: D1_ERROR: SqliteError: no such table: test at D1Database._sendOrThrow (cloudflare-internal:d1-api:66:19) at async D1PreparedStatement.all (cloudflare-internal:d1-api:175:29) at async linksqlget (index.js:16078:15) at async index.js:8061:50 at async jsonError (index.js:16094:12) { stack: Error: D1_ERROR: SqliteError: no such table: test …061:50 at async jsonError (index.js:16094:12), message: D1_ERROR: SqliteError: no such table: test, cause: Error: SqliteError: no such table: test at D1Database._sendOrThrow (cloudflare-internal:d1-api:… }
Generally no. Images should go in some kind of object storage, like R2. Once you've stored them externally you can keep a link or the path to the image in your database.
It should be fine assuming you arent reading the key before its uploaded. KV should also be faster especially since it is replicated... but more expensive.