drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
21.44k stars 484 forks source link

[FEATURE]: explain analyse #2498

Open bobbymannino opened 2 weeks ago

bobbymannino commented 2 weeks ago

Describe what you want

It would be great to have an option for explain analyse. Not sure about implementation but this comes naturally to me;

import { analyse, explain } from 'drizzle-orm/pg-core';

const result = await explain(analyse(db.select(…).from(…)));