This commit is contained in:
2026-06-22 08:55:57 +08:00
parent dbb87823e8
commit 6ade6e8fa9
325 changed files with 41131 additions and 855 deletions
+9
View File
@@ -0,0 +1,9 @@
-- 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;