As per docs D1 has TypeScript support for representing rows like: ``` // Row definition type OrderR

As per docs D1 has TypeScript support for representing rows like:

// Row definition
type OrderRow = {
  Id: string;
  CustomerName: string;
  OrderDate: number;
};

// Elsewhere in your application
const result = await env.MY_DB.prepare(
  "SELECT Id, CustomerName, OrderDate FROM [Order] ORDER BY ShippedDate DESC LIMIT 100",
).run<OrderRow>();


What if the database has snake case column names, but I want to keep camel case;
is there a simple (automatic) to convert his?

e.g. like Drizzle supports with
const db = drizzle({ connection: process.env.DATABASE_URL, casing: 'snake_case' })


If not wouldn't that a nice feature request?
Was this page helpful?