Merged in feature/textextract (pull request #108)

Start adding Textract + UUID changes

* base

* startclient

* ts

* short

* tests
This commit is contained in:
Michael McGuinness
2025-03-20 11:06:41 +00:00
parent 1587da9d11
commit 53ea7d34e6
196 changed files with 25972 additions and 1456 deletions
+20
View File
@@ -0,0 +1,20 @@
-- name: IsDocumentTextExtracted :one
SELECT EXISTS(
SELECT 1 FROM currentTextEntries WHERE documentId = @documentId
);
-- name: GetDocumentTextExtractionByHash :one
SELECT id, documentId, bucket, key, version, hash, cleanEntryId
FROM currentTextEntries
WHERE cleanEntryId = @cleanEntryId and hash = @hash;
-- name: AddDocumentText :one
INSERT INTO documentTextExtractions (bucket, key, cleanEntryId, hash) VALUES ($1, $2, $3, $4) returning id;
-- name: AddDocumentTextEntry :exec
INSERT INTO documentTextExtractionEntries (textId, version) VALUES ($1, $2);
-- name: GetTextEntryByDocId :one
SELECT id, documentId, bucket, key, version, hash, cleanEntryId
FROM currentTextEntries
WHERE documentId = @documentId;