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 cancel;
15pub mod doc_set;
16mod float_text;
17pub mod json;
18pub mod memory;
19pub mod notifications;
20pub mod ordering;
21pub mod posting_list;
22pub mod predicate;
23pub mod ranked_view;
24pub mod relation;
25mod relation_identity;
26pub mod types;
27pub mod vector_execution;
28
29pub use cancel::{
30    CancellationDeadline, CancellationReason, CancellationToken, QueryCancelled, ScheduledAction,
31    SQLSTATE_QUERY_CANCELED,
32};
33pub use doc_set::DocSet;
34pub use float_text::{format_float_pg, format_float_pg_with_control};
35pub use posting_list::{GeneralizedPostingList, PostingList};
36pub use predicate::{sql_null_test, Predicate};
37pub use ranked_view::RankedView;
38pub use relation::{LogSemiring, Relation, RelationEntry, Semiring};
39pub use relation_identity::RelationIdentity;
40pub use types::{
41    jsonb_equality_key, jsonb_equality_key_with_control, write_jsonb_comparison_key,
42    write_jsonb_equality_key, ArrayAssignmentError, ArrayTraversalError, ArrayValue,
43    BudgetedArrayElements, ControlledArrayElements, DecimalValue, DiskANNIndexStats,
44    DiskANNQueryStats, DocId, Edge, EdgeId, EnumLabelKey, EnumLabelKeyError,
45    EnumLabelKeyParseError, EnumValue, FieldName, GeneralizedPayload, GeneralizedPostingEntry,
46    IndexStats, JsonValueDecoder, JsonbKeyError, LegacyVectorKind, LegacyVectorValue, PathExpr,
47    PathSegment, Payload, PostingEntry, RecordFieldType, RowValue, TemporalDateOrder,
48    TemporalInputError, TemporalTimeZone, TemporalValue, TokenOccurrence, TokenOccurrenceError,
49    TokenOffsets, Value, ValueRetentionError, VectorGeneration, VectorPopulationStats,
50    VectorQueryRoute, VectorReadStats, Vertex, VertexId, MAX_ENUM_LABEL_KEY_BYTES,
51};
52
53mod scored_entry;
54pub use scored_entry::ScoredEntry;
55
56pub mod catalog_acl;
57pub mod catalog_identity;
58pub mod catalog_index;
59pub mod catalog_role;
60pub mod catalog_schema;
61pub mod catalog_sequence;
62
63pub mod retrieval;
64pub mod rpq;