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:
parent
668d97319c
commit
d4c91cb109
3 changed files with 8 additions and 0 deletions
5
.changeset/few-pets-relax.md
Normal file
5
.changeset/few-pets-relax.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/db": patch
|
||||
---
|
||||
|
||||
Expose the Drizzle `alias` utility from `astro:db` to enable self-joins on a table.
|
|
@ -92,3 +92,5 @@ export {
|
|||
max,
|
||||
min,
|
||||
} from 'drizzle-orm';
|
||||
|
||||
export { alias } from 'drizzle-orm/sqlite-core';
|
||||
|
|
1
packages/db/virtual.d.ts
vendored
1
packages/db/virtual.d.ts
vendored
|
@ -42,4 +42,5 @@ declare module 'astro:db' {
|
|||
export const sumDistinct: RuntimeConfig['sumDistinct'];
|
||||
export const max: RuntimeConfig['max'];
|
||||
export const min: RuntimeConfig['min'];
|
||||
export const alias: RuntimeConfig['alias'];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue