Files
agentic-coding-workflow/internal/codeindex/queries/chunks.sql
T
2026-06-22 08:55:57 +08:00

10 lines
405 B
SQL

-- The embedding (vector) column is intentionally excluded from every sqlc query
-- here: sqlc has no native pgvector type. Vector INSERT (bulk) and cosine-KNN
-- SELECT are hand-written in repository.go using the pgvector text literal format.
-- name: DeleteChunksByRun :exec
DELETE FROM code_chunks WHERE run_id = $1;
-- name: CountChunksByRun :one
SELECT count(*) FROM code_chunks WHERE run_id = $1;