mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(server): migrate album-user repo to kysely (#15351)
This commit is contained in:
parent
c5476a99b1
commit
2903ad8156
6 changed files with 78 additions and 36 deletions
25
server/src/queries/album.user.repository.sql
Normal file
25
server/src/queries/album.user.repository.sql
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
-- NOTE: This file is auto generated by ./sql-generator
|
||||
|
||||
-- AlbumUserRepository.create
|
||||
insert into
|
||||
"albums_shared_users_users" ("usersId", "albumsId")
|
||||
values
|
||||
($1, $2)
|
||||
returning
|
||||
*
|
||||
|
||||
-- AlbumUserRepository.update
|
||||
update "albums_shared_users_users"
|
||||
set
|
||||
"role" = $1
|
||||
where
|
||||
"usersId" = $2
|
||||
and "albumsId" = $3
|
||||
returning
|
||||
*
|
||||
|
||||
-- AlbumUserRepository.delete
|
||||
delete from "albums_shared_users_users"
|
||||
where
|
||||
"usersId" = $1
|
||||
and "albumsId" = $2
|
||||
Loading…
Add table
Add a link
Reference in a new issue