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