Skip to main content

uqa_core/
lib.rs

1//
2// Unified Query Algebra
3//
4// Copyright (c) 2023-2026 Cognica, Inc.
5//
6
7//! Document supports, finite-support relations, posting storage, ranked views,
8//! and shared value types for UQA.
9//!
10//! See `docs/plans/0001-uqa-engine-implementation-plan.md` Section 2.1 for the
11//! algebraic invariants this crate must preserve.
12
13pub mod agtype;
14pub mod atomic;
15pub mod cancel;
16pub mod doc_set;
17mod float_text;
18pub mod json;
19pub mod memory;
20pub mod notifications;
21pub mod ordering;
22pub mod posting_list;
23pub mod predicate;
24pub mod ranked_view;
25pub mod relation;
26mod relation_identity;
27pub mod types;
28pub mod vector_execution;
29
30pub use cancel::{
31    CancellationDeadline, CancellationReason, CancellationToken, QueryCancelled, ScheduledAction,
32    SQLSTATE_QUERY_CANCELED,
33};
34pub use doc_set::DocSet;
35pub use float_text::{format_float_pg, format_float_pg_with_control};
36pub use posting_list::{GeneralizedPostingList, PostingList};
37pub use predicate::{sql_null_test, Predicate};
38pub use ranked_view::RankedView;
39pub use relation::{LogSemiring, Relation, RelationEntry, Semiring};
40pub use relation_identity::RelationIdentity;
41pub use types::{
42    compare_bytes_with_control, fixed_char_comparison_text_with_control, jsonb_equality_key,
43    jsonb_equality_key_with_control, write_jsonb_comparison_key, write_jsonb_equality_key,
44    ArrayAssignmentError, ArrayTraversalError, ArrayValue, BitStringValue, BudgetedArrayElements,
45    ControlledArrayElements, DatumValue, DecimalValue, DiskANNIndexStats, DiskANNQueryStats, DocId,
46    Edge, EdgeId, EnumLabelKey, EnumLabelKeyError, EnumLabelKeyParseError, EnumValue, FieldName,
47    GeneralizedPayload, GeneralizedPostingEntry, IndexStats, JsonValueDecoder, JsonbKeyError,
48    LegacyVectorKind, LegacyVectorValue, PathExpr, PathSegment, Payload, PostingEntry,
49    RecordFieldType, RecordValue, RowValue, TemporalDateOrder, TemporalInfinity,
50    TemporalInputError, TemporalIntervalStyle, TemporalTimeZone, TemporalValue, TokenOccurrence,
51    TokenOccurrenceError, TokenOffsets, Value, ValueRetentionError, VectorGeneration,
52    VectorPopulationStats, VectorQueryRoute, VectorReadStats, Vertex, VertexId,
53    MAX_ENUM_LABEL_KEY_BYTES,
54};
55
56mod scored_entry;
57pub use scored_entry::ScoredEntry;
58
59pub mod catalog_acl;
60pub mod catalog_identity;
61pub mod catalog_index;
62pub mod catalog_role;
63pub mod catalog_schema;
64pub mod catalog_sequence;
65
66pub mod retrieval;
67pub mod rpq;