Inside a DO? Is Hono looking for the Env in the right place? I would file a bug against Hono.
Inside a DO? Is Hono looking for the Env in the right place? I would file a bug against Hono.
hono-do, but the line above the install info is:This is a work in progress. The code is not yet ready for production use.
interface DetailsDataType{
description:string,
ref:string //Primary Key in Table
}const { results } = await c.env.DATABASE.prepare("INSERT INTO details (ref, description) VALUES (?, ?) RETURNING *")
.bind(descData.description, descData.ref)
.run()