0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

db: export 'alias' from drizzle-orm/sqlite-core (#10789)

* db: export 'alias' from drizzle-orm/sqlite-core

* chore: changeset

* fix: changeset target

---------

Co-authored-by: Ben Holmes <hey@bholmes.dev>
This commit is contained in:
Nick Dubelman 2024-04-16 14:28:20 -07:00 committed by GitHub
parent 668d97319c
commit d4c91cb109
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/db": patch
---
Expose the Drizzle `alias` utility from `astro:db` to enable self-joins on a table.

View file

@ -92,3 +92,5 @@ export {
max, max,
min, min,
} from 'drizzle-orm'; } from 'drizzle-orm';
export { alias } from 'drizzle-orm/sqlite-core';

View file

@ -42,4 +42,5 @@ declare module 'astro:db' {
export const sumDistinct: RuntimeConfig['sumDistinct']; export const sumDistinct: RuntimeConfig['sumDistinct'];
export const max: RuntimeConfig['max']; export const max: RuntimeConfig['max'];
export const min: RuntimeConfig['min']; export const min: RuntimeConfig['min'];
export const alias: RuntimeConfig['alias'];
} }