-- name: GetMediaSet :one SELECT * FROM media_sets WHERE id = $1; -- name: GetMediaSetByYoutubeID :one SELECT * FROM media_sets WHERE youtube_id = $1; -- name: CreateMediaSet :one INSERT INTO media_sets (youtube_id, audio_youtube_itag, audio_channels, audio_frames_approx, audio_sample_rate_raw, audio_mime_type_encoded, video_youtube_itag, video_mime_type, video_duration_nanos, created_at, updated_at) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, NOW(), NOW()) RETURNING *;