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.
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.29.0
// source: tenant_membership.sql
package store
import (
"context"
"github.com/jackc/pgx/v5/pgtype"
)
const lockActiveTenantHumanMembership = `-- name: LockActiveTenantHumanMembership :one
SELECT actor.account_id
FROM actors actor
WHERE actor.tenant_id=$1 AND actor.id=$2 AND actor.kind='human'
FOR SHARE
`
type LockActiveTenantHumanMembershipParams struct {
TenantID string `json:"tenant_id"`
ID string `json:"id"`
}
// A Human Actor row is its Space membership; the share lock keeps it in place
// while a Work Item assignment that names it commits.
func (q *Queries) LockActiveTenantHumanMembership(ctx context.Context, arg LockActiveTenantHumanMembershipParams) (pgtype.Text, error) {
row := q.db.QueryRow(ctx, lockActiveTenantHumanMembership, arg.TenantID, arg.ID)
var account_id pgtype.Text
err := row.Scan(&account_id)
return account_id, err
}