Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

921 B
Raw Blame
// Code generated by sqlc. DO NOT EDIT.
// versions:
//   sqlc v1.29.0
// source: hidden_meeting.sql

package store

import (
	"context"
)

const hideMeeting = `-- name: HideMeeting :one
WITH capture AS (
    UPDATE capture_sessions SET hidden_at=coalesce(hidden_at,now())
    WHERE id=$1::text AND tenant_id=$2::text
    RETURNING id
)
SELECT EXISTS(SELECT 1 FROM capture)::boolean AS found
`

type HideMeetingParams struct {
	CaptureSessionID string `json:"capture_session_id"`
	TenantID         string `json:"tenant_id"`
}

// Hides a Capture's meeting from the Space's Human on every device; found is
// false when the Capture is not in the Space. Hiding it again keeps the first
// time.
func (q *Queries) HideMeeting(ctx context.Context, arg HideMeetingParams) (bool, error) {
	row := q.db.QueryRow(ctx, hideMeeting, arg.CaptureSessionID, arg.TenantID)
	var found bool
	err := row.Scan(&found)
	return found, err
}