For the complete documentation index, see llms.txt. This page is also available as Markdown.

COUNT

const mountainCount = await client.selectFirst({
   select: count(),
   from: table(Mountain),
});
// sql: SELECT count(*)
//      FROM "Mountain"
//
// const mountainCount: number

Last updated