#Module '"astro:db"' has no exported member 'count'

2 messages · Page 1 of 1 (latest)

flint delta
#

Hey there, trying to try out the new astro:db to build a Like feature for posts and I don't see the drizzle count function being exposed like the docs imply.

Astro                    v4.5.4
Node                     v21.6.2
System                   macOS (arm64)
Package Manager          bun
Output                   hybrid
Adapter                  @astrojs/vercel/serverless
Integrations             @astrojs/tailwind
                         @astrojs/sitemap
                         astro:db
                         @astrojs/db/file-url

Doc mentions count() here: https://docs.astro.build/en/guides/astro-db/#drizzle-utilities

Docs

Learn how to use Astro DB, a fully-managed SQL database designed exclusively for Astro.

forest spire
#

import { count } from 'drizzle-orm'
☝️