Merged in feature/textExtractionsPart3 (pull request #195)
enrich doc responses * enrich doc responses
This commit is contained in:
@@ -76,3 +76,15 @@ SELECT
|
||||
FROM parts p
|
||||
RIGHT JOIN max_part mp ON p.part = mp.max_part_num
|
||||
GROUP BY p.part;
|
||||
|
||||
-- name: GetDocumentEnriched :one
|
||||
-- Retrieves a document with extended metadata including folder and filename
|
||||
SELECT
|
||||
d.id,
|
||||
d.clientId,
|
||||
d.hash,
|
||||
d.folderId,
|
||||
d.filename,
|
||||
d.originalPath
|
||||
FROM documents d
|
||||
WHERE d.id = $1;
|
||||
|
||||
Reference in New Issue
Block a user