mirror of
https://github.com/immich-app/immich.git
synced 2026-05-21 23:26:31 -04:00
bf32864644
* video streaming table definitions Co-authored-by: Copilot <copilot@github.com> * update sql * tetris * use enum Co-authored-by: Copilot <copilot@github.com> * fix column name --------- Co-authored-by: Copilot <copilot@github.com>
47 lines
689 B
SQL
47 lines
689 B
SQL
-- NOTE: This file is auto generated by ./sql-generator
|
|
|
|
-- VideoStreamRepository.getSession
|
|
select
|
|
*
|
|
from
|
|
"video_stream_session"
|
|
where
|
|
"id" = $1
|
|
|
|
-- VideoStreamRepository.getVariant
|
|
select
|
|
*
|
|
from
|
|
"video_stream_variant"
|
|
where
|
|
"id" = $1
|
|
|
|
-- VideoStreamRepository.getSegment
|
|
select
|
|
*
|
|
from
|
|
"video_stream_segment"
|
|
where
|
|
"variantId" = $1
|
|
and "index" = $2
|
|
|
|
-- VideoStreamRepository.getExpiredSessions
|
|
select
|
|
"id"
|
|
from
|
|
"video_stream_session"
|
|
where
|
|
"expiresAt" <= $1
|
|
|
|
-- VideoStreamRepository.extendSession
|
|
update "video_stream_session"
|
|
set
|
|
"expiresAt" = $1
|
|
where
|
|
"id" = $2
|
|
|
|
-- VideoStreamRepository.deleteSession
|
|
delete from "video_stream_session"
|
|
where
|
|
"id" = $1
|