-- 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
