Counting rows in Drizzle ORM
Hi,
I was wondering what the best way to count rows in drizzle is. Thanks for the help!
Solution:Jump to solution
```ts
import { sql } from 'drizzle-orm'
import { YOUR_TABLE } from 'schema'
const { count } = await db.select({...
3 Replies
Solution
Thanks! That seems to be working.