feat(storage): add native PostgreSQL runtime and verified offline application import
Build and publish container images / images (push) Failing after 12m29s

This commit is contained in:
Anya Tokugawa committed 2026-11-15 05:47:14 +09:00
1 parent 96065d1e89
commit 0ba1dcfef0
243 files changed
+21441 -3090

No files matched your search

+9 -2
View File
@@ -21,6 +21,9 @@ func (s *Store) ReadDocumentWindow(documentHash string, offset, limit int64) (Do
}
func (s *Store) ReadDocumentWindowContext(ctx context.Context, documentHash string, offset, limit int64) (DocumentWindow, error) {
if s.sqlBackend == storePostgreSQL && s.DocumentRoot == "" {
return DocumentWindow{}, ErrDocumentStoreRequired
}
if err := ctx.Err(); err != nil {
return DocumentWindow{}, err
}
@@ -85,8 +88,9 @@ func (s *Store) GetRevisionMetadata(revisionUUID string) (*Revision, error) {
}
func (s *Store) GetRevisionMetadataContext(ctx context.Context, revisionUUID string) (*Revision, error) {
row := s.DB.QueryRowContext(ctx, `SELECT uuid,object_uuid,COALESCE(document_hash,''),COALESCE(NULLIF(lang,''),'und'),COALESCE(NULLIF(content_type,''),'text/html; charset=utf-8'),COALESCE(filename,''),'',COALESCE(message,''),COALESCE(created_at,0),COALESCE(created_at_ms,COALESCE(created_at,0)*1000) FROM revisions WHERE uuid=?`, revisionUUID)
return scanRevision(row)
row := s.DB.QueryRowContext(ctx, `SELECT uuid,object_uuid,COALESCE(document_hash,''),COALESCE(NULLIF(lang,''),'und'),COALESCE(NULLIF(content_type,''),'text/html; charset=utf-8'),COALESCE(filename,''),'',COALESCE(message,''),COALESCE(created_at,0),COALESCE(created_at_ms,COALESCE(created_at,0)*1000) FROM revisions WHERE uuid=`+s.sqlParam(1), revisionUUID)
v, err := scanRevision(row)
return v, s.sqlError("revision metadata", err)
}
func (s *Store) DocumentSize(documentHash string) (int64, error) {
@@ -94,6 +98,9 @@ func (s *Store) DocumentSize(documentHash string) (int64, error) {
}
func (s *Store) DocumentSizeContext(ctx context.Context, documentHash string) (int64, error) {
if s.sqlBackend == storePostgreSQL && s.DocumentRoot == "" {
return 0, ErrDocumentStoreRequired
}
if err := ctx.Err(); err != nil {
return 0, err
}