Merged in feature/docclean (pull request #55)
Doc Clean Structure * outline * isdocclean * placeholder for clean log * versionplustesting * versionplustesting * testspassed
This commit is contained in:
@@ -5,7 +5,10 @@ SELECT id, jobId, hash FROM documents WHERE id = $1 LIMIT 1;
|
||||
INSERT INTO documents (jobId, hash) VALUES ($1, $2) RETURNING id;
|
||||
|
||||
-- name: AddDocumentEntry :exec
|
||||
INSERT INTO documentEntries (documentId, bucket, location) VALUES ($1, $2, $3);
|
||||
INSERT INTO documentEntries (documentId, bucket, key) VALUES ($1, $2, $3);
|
||||
|
||||
-- name: GetDocumentEntry :one
|
||||
SELECT documentId, bucket, key FROM documentEntries WHERE documentId = $1 ORDER BY id DESC LIMIT 1;
|
||||
|
||||
-- name: GetDocumentIDByHash :one
|
||||
SELECT id FROM documents WHERE hash = $1 and jobId = $2;
|
||||
SELECT id FROM documents WHERE hash = $1 and jobId = $2;
|
||||
|
||||
Reference in New Issue
Block a user