Skip to main content

Crate reddb_file

Crate reddb_file 

Source
Expand description

RedDB file artifact layer.

This crate owns RedDB’s file-level contracts: embedded single-file .rdb, serverless boot artifacts, and primary-replica file/WAL planning. Runtime, SQL, and storage-engine payload semantics stay in reddb-server; this crate works with bytes, offsets, locks, checkpoints, manifests, and recovery rules.

Re-exports§

pub use ai_model_cache::ai_model_cache_manifest_path;
pub use ai_model_cache::ai_model_cache_manifest_temp_path;
pub use ai_model_cache::ai_model_cache_purge_dir;
pub use ai_model_cache::ai_model_cache_purge_root;
pub use ai_model_cache::ai_model_cache_root;
pub use ai_model_cache::ai_model_cache_staging_dir;
pub use ai_model_cache::ai_model_cache_staging_root;
pub use ai_model_cache::copy_ai_model_cache_artifact;
pub use ai_model_cache::decode_ai_model_cache_manifest_json;
pub use ai_model_cache::drop_ai_model_cache_dir;
pub use ai_model_cache::encode_ai_model_cache_manifest_json;
pub use ai_model_cache::promote_ai_model_cache_staging;
pub use ai_model_cache::write_ai_model_cache_manifest;
pub use ai_model_cache::AiModelCacheManifest;
pub use ai_model_cache::AiModelCacheManifestFile;
pub use ai_model_cache::AI_MODEL_CACHE_DIR_NAME;
pub use ai_model_cache::AI_MODEL_CACHE_MANIFEST_FILE;
pub use ai_model_cache::AI_MODEL_CACHE_PURGE_DIR_NAME;
pub use ai_model_cache::AI_MODEL_CACHE_STAGING_DIR_NAME;
pub use audit_log::rotate_audit_log;
pub use audit_log::AuditLogRotation;
pub use backup_manifest::archived_snapshot_key;
pub use backup_manifest::archived_wal_segment_key;
pub use backup_manifest::backup_head_artifact;
pub use backup_manifest::backup_head_key;
pub use backup_manifest::backup_root_from_snapshot_prefix;
pub use backup_manifest::backup_snapshot_dir;
pub use backup_manifest::backup_snapshot_dir_prefix;
pub use backup_manifest::backup_snapshot_prefix;
pub use backup_manifest::backup_wal_dir;
pub use backup_manifest::backup_wal_dir_prefix;
pub use backup_manifest::backup_wal_prefix;
pub use backup_manifest::decode_archived_logical_wal_records;
pub use backup_manifest::decode_backup_head_json;
pub use backup_manifest::decode_snapshot_manifest_json;
pub use backup_manifest::decode_unified_manifest_json;
pub use backup_manifest::decode_wal_segment_manifest_json;
pub use backup_manifest::encode_archived_logical_wal_records;
pub use backup_manifest::encode_backup_head_json;
pub use backup_manifest::encode_snapshot_manifest_json;
pub use backup_manifest::encode_unified_manifest_json;
pub use backup_manifest::encode_wal_segment_manifest_json;
pub use backup_manifest::is_archived_snapshot_key;
pub use backup_manifest::is_archived_wal_segment_key;
pub use backup_manifest::is_backup_manifest_sidecar_key;
pub use backup_manifest::parse_archived_snapshot_key;
pub use backup_manifest::parse_archived_wal_segment_key;
pub use backup_manifest::remote_database_key;
pub use backup_manifest::sha256_bytes_hex;
pub use backup_manifest::sha256_file_hex;
pub use backup_manifest::snapshot_manifest_artifact;
pub use backup_manifest::snapshot_manifest_key;
pub use backup_manifest::unified_manifest_artifact;
pub use backup_manifest::unified_manifest_key;
pub use backup_manifest::wal_segment_manifest_artifact;
pub use backup_manifest::wal_segment_manifest_key;
pub use backup_manifest::ArchivedLogicalWalRecord;
pub use backup_manifest::BackupHead;
pub use backup_manifest::BackupJsonArtifact;
pub use backup_manifest::SnapshotManifest;
pub use backup_manifest::UnifiedManifest;
pub use backup_manifest::UnifiedSnapshotEntry;
pub use backup_manifest::UnifiedWalEntry;
pub use backup_manifest::WalSegmentManifest;
pub use backup_manifest::WalSegmentMeta;
pub use backup_manifest::BACKUP_MANIFEST_FORMAT_VERSION;
pub use backup_temp::BackupTempJsonFile;
pub use backup_temp::ARCHIVED_CHANGE_RECORDS_READ_TEMP_PREFIX;
pub use backup_temp::ARCHIVED_CHANGE_RECORDS_TEMP_PREFIX;
pub use backup_temp::BACKUP_JSON_OBJECT_READ_TEMP_PREFIX;
pub use backup_temp::BACKUP_JSON_OBJECT_TEMP_PREFIX;
pub use blob_cache::blob_cache_control_path;
pub use blob_cache::blob_cache_control_temp_path;
pub use blob_cache::blob_cache_double_write_path;
pub use blob_cache::blob_cache_l2_backup_control_key;
pub use blob_cache::blob_cache_l2_backup_pager_key;
pub use blob_cache::decode_l2_v2_frame;
pub use blob_cache::encode_l2_key;
pub use blob_cache::encode_l2_v2_frame;
pub use blob_cache::L2BlobFrame;
pub use blob_cache::L2Control;
pub use blob_cache::L2Record;
pub use blob_cache::L2_BACKUP_CONTROL_SUFFIX;
pub use blob_cache::L2_BACKUP_PAGER_SUFFIX;
pub use blob_cache::L2_BLOB_MAGIC;
pub use blob_cache::L2_CONTROL_MAGIC;
pub use blob_cache::L2_FORMAT_V1_RAW;
pub use blob_cache::L2_FORMAT_V2_FRAMED;
pub use blob_cache::L2_FRAME_TAG_RAW;
pub use blob_cache::L2_FRAME_TAG_ZSTD;
pub use blob_cache::L2_METADATA_MAGIC;
pub use bloom_segment::decode_bloom_segment_frame;
pub use bloom_segment::encode_bloom_segment_frame;
pub use bloom_segment::BloomSegmentFrame;
pub use bloom_segment::BloomSegmentFrameError;
pub use bloom_segment::BLOOM_SEGMENT_HEADER_LEN;
pub use btree_value_layout::btree_projected_cell_len;
pub use btree_value_layout::btree_value_pointer_head;
pub use btree_value_layout::decode_btree_inline_payload;
pub use btree_value_layout::decode_btree_value_cell;
pub use btree_value_layout::encode_btree_inline_compressed;
pub use btree_value_layout::encode_btree_inline_raw;
pub use btree_value_layout::encode_btree_pointer;
pub use btree_value_layout::BTreeValueCell;
pub use btree_value_layout::BTreeValueCellError;
pub use btree_value_layout::BTREE_VALUE_MAX_SIZE;
pub use btree_value_layout::BTREE_VALUE_OVERFLOW_THRESHOLD;
pub use btree_value_layout::BTREE_VALUE_POINTER_CELL_LEN;
pub use column_block::column_block_crc32;
pub use column_block::decode_column_block_frame;
pub use column_block::decode_column_block_granule_bloom_blob;
pub use column_block::decode_column_block_granule_index_blob;
pub use column_block::encode_column_block_frame;
pub use column_block::encode_column_block_granule_bloom_blob;
pub use column_block::encode_column_block_granule_index_blob;
pub use column_block::peek_column_block_version;
pub use column_block::ColumnBlockColumn;
pub use column_block::ColumnBlockFrame;
pub use column_block::ColumnBlockFrameError;
pub use column_block::ColumnBlockGranuleBloom;
pub use column_block::ColumnBlockGranuleIndex;
pub use column_block::ColumnBlockGranuleStats;
pub use column_block::ColumnBlockPart;
pub use column_block::COLUMN_BLOCK_DIR_ENTRY_LEN;
pub use column_block::COLUMN_BLOCK_HEADER_LEN;
pub use control_store::DurableLastVote;
pub use control_store::FileLastVoteStore;
pub use control_store::FileTermStore;
pub use control_store::DEFAULT_FILE_TERM;
pub use control_store::LAST_VOTE_TEMP_EXTENSION;
pub use control_store::TERM_TEMP_EXTENSION;
pub use embedded::EmbeddedRdbArtifact;
pub use embedded::EmbeddedRdbManifest;
pub use embedded::EmbeddedRdbOpen;
pub use embedded::EmbeddedRdbSuperblock;
pub use embedded::RdbFileError;
pub use embedded::RdbFileResult;
pub use embedded::DEFAULT_FORMAT_VERSION;
pub use embedded::EMBEDDED_RDB_MANIFEST_OFFSET;
pub use embedded::EMBEDDED_RDB_SUPERBLOCK_0_OFFSET;
pub use embedded::EMBEDDED_RDB_SUPERBLOCK_1_OFFSET;
pub use embedded::EMBEDDED_RDB_SUPERBLOCK_SIZE;
pub use file_format::clear_paged_page_checksum;
pub use file_format::database_header_freelist_head;
pub use file_format::database_header_magic_matches;
pub use file_format::database_header_page_count;
pub use file_format::database_header_page_size;
pub use file_format::decode_database_header;
pub use file_format::decode_paged_dwb_frame;
pub use file_format::decode_paged_encryption_header;
pub use file_format::decode_paged_page_header;
pub use file_format::encode_database_header;
pub use file_format::encode_paged_dwb_frame;
pub use file_format::encode_paged_encryption_header;
pub use file_format::encode_paged_page_header;
pub use file_format::init_database_header_page;
pub use file_format::paged_cell_bytes;
pub use file_format::paged_cell_key_value;
pub use file_format::paged_cell_len;
pub use file_format::paged_cell_pointer;
pub use file_format::paged_cell_pointer_is_valid;
pub use file_format::paged_cell_pointer_offset;
pub use file_format::paged_cell_total_len;
pub use file_format::paged_encryption_header_bytes;
pub use file_format::paged_encryption_marker_present;
pub use file_format::paged_page_cell_count;
pub use file_format::paged_page_checksum;
pub use file_format::paged_page_free_end;
pub use file_format::paged_page_free_start;
pub use file_format::paged_page_id;
pub use file_format::paged_page_lsn;
pub use file_format::paged_page_parent_id;
pub use file_format::paged_page_right_child;
pub use file_format::paged_page_type;
pub use file_format::set_database_header_freelist_head;
pub use file_format::set_database_header_page_count;
pub use file_format::set_database_header_version;
pub use file_format::set_paged_cell_pointer;
pub use file_format::set_paged_page_cell_count;
pub use file_format::set_paged_page_checksum;
pub use file_format::set_paged_page_free_end;
pub use file_format::set_paged_page_free_start;
pub use file_format::set_paged_page_lsn;
pub use file_format::set_paged_page_parent_id;
pub use file_format::set_paged_page_right_child;
pub use file_format::write_paged_cell;
pub use file_format::write_paged_encryption_marker_and_header;
pub use file_format::DatabaseHeader;
pub use file_format::DatabaseHeaderError;
pub use file_format::PagedDwbEntry;
pub use file_format::PagedDwbFrameError;
pub use file_format::PagedEncryptionHeader;
pub use file_format::PagedPageHeader;
pub use file_format::PhysicalFileHeader;
pub use file_format::BLOOM_SEGMENT_MAGIC;
pub use file_format::COLUMN_BLOCK_MAGIC;
pub use file_format::COLUMN_BLOCK_VERSION_V1;
pub use file_format::DWB_MAGIC;
pub use file_format::PAGED_CELL_HEADER_SIZE;
pub use file_format::PAGED_CELL_POINTER_SIZE;
pub use file_format::PAGED_DWB_ENTRY_HEADER_SIZE;
pub use file_format::PAGED_DWB_ENTRY_SIZE;
pub use file_format::PAGED_DWB_HEADER_SIZE;
pub use file_format::PAGED_ENCRYPTION_HEADER_SIZE;
pub use file_format::PAGED_ENCRYPTION_KEY_CHECK_BLOB_SIZE;
pub use file_format::PAGED_ENCRYPTION_KEY_CHECK_PLAINTEXT_SIZE;
pub use file_format::PAGED_ENCRYPTION_MARKER;
pub use file_format::PAGED_ENCRYPTION_MARKER_OFFSET;
pub use file_format::PAGED_ENCRYPTION_SALT_SIZE;
pub use file_format::PAGED_PAGE_HEADER_SIZE;
pub use file_format::PAGED_PAGE_SIZE;
pub use file_format::PAGE_FILE_MAGIC;
pub use file_format::PAGE_FILE_VERSION;
pub use file_format::VECTOR_BTREE_FORMAT_VERSION;
pub use file_format::VECTOR_BTREE_FORMAT_VERSION_V1;
pub use file_format::VECTOR_BTREE_FORMAT_VERSION_V2;
pub use graph_label_registry::decode_graph_label_registry_frame;
pub use graph_label_registry::encode_graph_label_registry_frame;
pub use graph_label_registry::GraphLabelRegistryEntry;
pub use graph_label_registry::GraphLabelRegistryFrameError;
pub use graph_label_registry::GRAPH_LABEL_REGISTRY_MAX_LABEL_LEN;
pub use graph_record::decode_graph_edge_record_v1;
pub use graph_record::decode_graph_edge_record_v2;
pub use graph_record::decode_graph_node_record_v1;
pub use graph_record::decode_graph_node_record_v2;
pub use graph_record::decode_graph_table_ref;
pub use graph_record::encode_graph_edge_record_v2;
pub use graph_record::encode_graph_node_record_v2;
pub use graph_record::encode_graph_table_ref;
pub use graph_record::graph_edge_record_v2_encoded_size;
pub use graph_record::graph_node_record_v2_encoded_size;
pub use graph_record::GraphEdgeRecord;
pub use graph_record::GraphNodeRecord;
pub use graph_record::GraphTableRef;
pub use graph_record::GraphVectorRef;
pub use graph_record::LegacyGraphEdgeRecord;
pub use graph_record::LegacyGraphNodeRecord;
pub use graph_record::GRAPH_EDGE_HEADER_SIZE;
pub use graph_record::GRAPH_EDGE_HEADER_SIZE_V1;
pub use graph_record::GRAPH_MAX_ID_SIZE;
pub use graph_record::GRAPH_MAX_LABEL_SIZE;
pub use graph_record::GRAPH_NODE_FLAG_HAS_TABLE_REF;
pub use graph_record::GRAPH_NODE_FLAG_HAS_VECTOR_REF;
pub use graph_record::GRAPH_NODE_HEADER_SIZE;
pub use graph_record::GRAPH_NODE_HEADER_SIZE_V1;
pub use graph_record::GRAPH_TABLE_REF_SIZE;
pub use graph_record::GRAPH_VECTOR_REF_HEADER_SIZE;
pub use graph_store::decode_graph_store_frame;
pub use graph_store::encode_graph_store_frame;
pub use graph_store::GraphStoreFrame;
pub use graph_store::GraphStoreFrameError;
pub use graph_store::GRAPH_STORE_HEADER_LEN;
pub use graph_store::GRAPH_STORE_MAGIC;
pub use graph_store::GRAPH_STORE_PAGE_COUNT_BYTES;
pub use graph_store::GRAPH_STORE_REGISTRY_LEN_BYTES;
pub use graph_store::GRAPH_STORE_VERSION_V1;
pub use graph_store::GRAPH_STORE_VERSION_V2;
pub use graph_table_index::decode_graph_table_index_frame;
pub use graph_table_index::encode_graph_table_index_frame;
pub use graph_table_index::GraphTableIndexEntry;
pub use graph_table_index::GraphTableIndexFrameError;
pub use graph_table_index::GRAPH_TABLE_INDEX_ENTRY_HEADER_LEN;
pub use graph_table_index::GRAPH_TABLE_INDEX_HEADER_LEN;
pub use graph_table_index::GRAPH_TABLE_INDEX_MAX_NODE_ID_LEN;
pub use hnsw_index_codec::decode_hnsw_index;
pub use hnsw_index_codec::encode_hnsw_index;
pub use hnsw_index_codec::HnswCodecError;
pub use hnsw_index_codec::HnswIndexLayout;
pub use hnsw_index_codec::HnswNodeLayout;
pub use hnsw_index_codec::HNSW_INDEX_MAGIC;
pub use hnsw_index_codec::HNSW_INDEX_VERSION;
pub use ivf_index_codec::decode_ivf_index;
pub use ivf_index_codec::encode_ivf_index;
pub use ivf_index_codec::IvfCodecError;
pub use ivf_index_codec::IvfIndexLayout;
pub use ivf_index_codec::IvfListLayout;
pub use ivf_index_codec::IVF_INDEX_MAGIC;
pub use layout::audit_log_rotated_compressed_path;
pub use layout::audit_log_rotated_plain_path;
pub use layout::data_file_name;
pub use layout::default_database_path;
pub use layout::default_service_database_path;
pub use layout::engine_wal_path;
pub use layout::legacy_audit_log_path;
pub use layout::legacy_logical_slots_path;
pub use layout::legacy_logical_slots_temp_path;
pub use layout::legacy_slow_query_log_path;
pub use layout::local_cas_lock_path;
pub use layout::local_upload_temp_path;
pub use layout::logical_wal_path;
pub use layout::logical_wal_path_in;
pub use layout::logical_wal_temp_path;
pub use layout::pager_dwb_path;
pub use layout::pager_dwb_shadow_path;
pub use layout::pager_header_path;
pub use layout::pager_header_shadow_path;
pub use layout::pager_legacy_wal_path;
pub use layout::pager_meta_path;
pub use layout::pager_meta_shadow_path;
pub use layout::pager_shadow_sidecar_paths;
pub use layout::parse_audit_log_rotated_timestamp;
pub use layout::physical_export_data_path;
pub use layout::physical_metadata_binary_path;
pub use layout::physical_metadata_journal_path;
pub use layout::physical_metadata_journal_prefix;
pub use layout::physical_metadata_json_path;
pub use layout::primary_replica_root;
pub use layout::primary_wal_segment_file_name;
pub use layout::rebootstrap_intent_log_path;
pub use layout::rebootstrap_pending_path;
pub use layout::rebootstrap_previous_path;
pub use layout::rebootstrap_ready_marker_path;
pub use layout::rebootstrap_staging_root;
pub use layout::relay_segment_relative_path;
pub use layout::serverless_cache_root;
pub use layout::serverless_namespace;
pub use layout::serverless_root;
pub use layout::shm_path;
pub use layout::sibling_path;
pub use layout::sidecar_file_name;
pub use layout::store_commit_coord_temp_wal_file_name;
pub use layout::store_commit_coord_temp_wal_path;
pub use layout::support_dir_for;
pub use layout::temp_path;
pub use layout::temp_path_in;
pub use layout::unified_wal_path;
pub use layout::unified_wal_path_in;
pub use layout::LayoutOverrides;
pub use layout::LayoutToggles;
pub use layout::LogDestination;
pub use layout::LogRoutingOverrides;
pub use layout::StorageLayout;
pub use layout::TieredLayoutPaths;
pub use layout::DEFAULT_DATABASE_FILE_NAME;
pub use layout::DEFAULT_SERVICE_DATABASE_PATH;
pub use local_backend::local_backend_atomic_upload;
pub use local_backend::local_backend_download;
pub use logical_wal::build_logical_wal_seek_index;
pub use logical_wal::encode_logical_wal_v2_for_compat;
pub use logical_wal::encode_logical_wal_v3;
pub use logical_wal::read_and_repair_logical_wal_entries;
pub use logical_wal::read_logical_wal_entries_from;
pub use logical_wal::rewrite_logical_wal_entries;
pub use logical_wal::LogicalWalEntry;
pub use logical_wal::LOGICAL_WAL_CRC_LEN;
pub use logical_wal::LOGICAL_WAL_SEEK_INDEX_INTERVAL;
pub use logical_wal::LOGICAL_WAL_SPOOL_MAGIC;
pub use logical_wal::LOGICAL_WAL_SPOOL_VERSION_CURRENT;
pub use logical_wal::LOGICAL_WAL_SPOOL_VERSION_V1;
pub use logical_wal::LOGICAL_WAL_SPOOL_VERSION_V2;
pub use logical_wal::LOGICAL_WAL_SPOOL_VERSION_V3;
pub use logical_wal::LOGICAL_WAL_V3_HEADER_LEN;
pub use native_artifact_codec::decode_document_pathvalue;
pub use native_artifact_codec::decode_fulltext_index;
pub use native_artifact_codec::decode_graph_adjacency;
pub use native_artifact_codec::encode_document_pathvalue;
pub use native_artifact_codec::encode_fulltext_index;
pub use native_artifact_codec::encode_graph_adjacency;
pub use native_artifact_codec::DocPathValueIndex;
pub use native_artifact_codec::DocPathValueRecord;
pub use native_artifact_codec::FulltextIndex;
pub use native_artifact_codec::GraphAdjacencyEdge;
pub use native_artifact_codec::NativeArtifactError;
pub use native_artifact_codec::DOC_PATHVALUE_MAGIC;
pub use native_artifact_codec::FULLTEXT_INDEX_MAGIC;
pub use native_artifact_codec::GRAPH_ADJACENCY_MAGIC;
pub use native_store::decode_native_blob_page;
pub use native_store::decode_native_catalog_summary_page;
pub use native_store::decode_native_collection_roots_page;
pub use native_store::decode_native_dump_collection_header;
pub use native_store::decode_native_dump_count;
pub use native_store::decode_native_dump_cross_ref;
pub use native_store::decode_native_dump_entity_record;
pub use native_store::decode_native_entity_record_frame;
pub use native_store::decode_native_len_prefixed_bytes;
pub use native_store::decode_native_len_prefixed_string;
pub use native_store::decode_native_manifest_summary_page;
pub use native_store::decode_native_metadata_overflow_continuation_header;
pub use native_store::decode_native_metadata_overflow_header;
pub use native_store::decode_native_metadata_state_summary_page;
pub use native_store::decode_native_paged_collection_root;
pub use native_store::decode_native_paged_cross_ref;
pub use native_store::decode_native_paged_metadata_header;
pub use native_store::decode_native_recovery_summary_page;
pub use native_store::decode_native_registry_summary_page;
pub use native_store::decode_native_store_header;
pub use native_store::decode_native_vector_artifact_store_page;
pub use native_store::encode_native_blob_page;
pub use native_store::encode_native_catalog_summary_page;
pub use native_store::encode_native_collection_roots_page;
pub use native_store::encode_native_dump_collection_header;
pub use native_store::encode_native_dump_count;
pub use native_store::encode_native_dump_cross_ref;
pub use native_store::encode_native_dump_entity_record;
pub use native_store::encode_native_entity_record_frame;
pub use native_store::encode_native_len_prefixed_bytes;
pub use native_store::encode_native_len_prefixed_str;
pub use native_store::encode_native_manifest_summary_page;
pub use native_store::encode_native_metadata_overflow_continuation_header;
pub use native_store::encode_native_metadata_overflow_header;
pub use native_store::encode_native_metadata_state_summary_page;
pub use native_store::encode_native_paged_collection_root;
pub use native_store::encode_native_paged_cross_ref;
pub use native_store::encode_native_paged_metadata_header;
pub use native_store::encode_native_recovery_summary_page;
pub use native_store::encode_native_registry_summary_page;
pub use native_store::encode_native_store_header;
pub use native_store::encode_native_vector_artifact_store_page;
pub use native_store::is_supported_store_version;
pub use native_store::native_blob_chunk_capacity;
pub use native_store::native_store_magic_matches;
pub use native_store::native_store_page_checksum;
pub use native_store::write_native_store_bytes_atomically;
pub use native_store::NativeCatalogCollectionSummary;
pub use native_store::NativeCatalogSummary;
pub use native_store::NativeDumpCollectionHeader;
pub use native_store::NativeDumpCrossRef;
pub use native_store::NativeEntityRecordFrame;
pub use native_store::NativeExportSummary;
pub use native_store::NativeManifestEntrySummary;
pub use native_store::NativeManifestSummary;
pub use native_store::NativeMetadataOverflowContinuationHeader;
pub use native_store::NativeMetadataOverflowHeader;
pub use native_store::NativeMetadataStateSummary;
pub use native_store::NativePagedCollectionRoot;
pub use native_store::NativePagedCrossRef;
pub use native_store::NativePagedMetadataHeader;
pub use native_store::NativeRecoverySummary;
pub use native_store::NativeRegistryIndexSummary;
pub use native_store::NativeRegistryJobSummary;
pub use native_store::NativeRegistryProjectionSummary;
pub use native_store::NativeRegistrySummary;
pub use native_store::NativeSnapshotSummary;
pub use native_store::NativeVectorArtifactPageSummary;
pub use native_store::NativeVectorArtifactSummary;
pub use native_store::ENTITY_RECORD_MAGIC;
pub use native_store::METADATA_HEADER_BYTES;
pub use native_store::METADATA_MAGIC;
pub use native_store::METADATA_OVERFLOW_CONTINUATION_HEADER_BYTES;
pub use native_store::METADATA_OVERFLOW_HEADER_BYTES;
pub use native_store::METADATA_OVERFLOW_MAGIC;
pub use native_store::NATIVE_BLOB_MAGIC;
pub use native_store::NATIVE_BLOB_PAGE_HEADER_BYTES;
pub use native_store::NATIVE_CATALOG_MAGIC;
pub use native_store::NATIVE_COLLECTION_ROOTS_MAGIC;
pub use native_store::NATIVE_MANIFEST_MAGIC;
pub use native_store::NATIVE_MANIFEST_SAMPLE_LIMIT;
pub use native_store::NATIVE_METADATA_STATE_MAGIC;
pub use native_store::NATIVE_RECOVERY_MAGIC;
pub use native_store::NATIVE_REGISTRY_MAGIC;
pub use native_store::NATIVE_VECTOR_ARTIFACT_MAGIC;
pub use native_store::STORE_MAGIC;
pub use native_store::STORE_VERSION_CURRENT;
pub use native_store::STORE_VERSION_V1;
pub use native_store::STORE_VERSION_V2;
pub use native_store::STORE_VERSION_V3;
pub use native_store::STORE_VERSION_V4;
pub use native_store::STORE_VERSION_V5;
pub use native_store::STORE_VERSION_V6;
pub use native_store::STORE_VERSION_V7;
pub use native_store::STORE_VERSION_V8;
pub use native_store::STORE_VERSION_V9;
pub use operational_manifest::OperationalManifest;
pub use physical_metadata::copy_physical_export_data_file;
pub use physical_metadata::copy_physical_metadata_binary_to_journal;
pub use physical_metadata::decode_persisted_physical_hypertable_chunk_json;
pub use physical_metadata::decode_persisted_physical_hypertable_json;
pub use physical_metadata::decode_persisted_physical_index_state_json;
pub use physical_metadata::decode_physical_analytical_storage_json;
pub use physical_metadata::decode_physical_analytics_job_json;
pub use physical_metadata::decode_physical_analytics_view_descriptor_json;
pub use physical_metadata::decode_physical_block_reference_json;
pub use physical_metadata::decode_physical_catalog_snapshot_json;
pub use physical_metadata::decode_physical_collection_contract_json;
pub use physical_metadata::decode_physical_declared_column_contract_json;
pub use physical_metadata::decode_physical_export_descriptor_json;
pub use physical_metadata::decode_physical_graph_projection_json;
pub use physical_metadata::decode_physical_manifest_event_json;
pub use physical_metadata::decode_physical_manifest_pointers_json;
pub use physical_metadata::decode_physical_metadata_document;
pub use physical_metadata::decode_physical_metadata_document_root_json;
pub use physical_metadata::decode_physical_schema_manifest_json;
pub use physical_metadata::decode_physical_snapshot_descriptor_json;
pub use physical_metadata::decode_physical_subscription_descriptor_json;
pub use physical_metadata::decode_physical_superblock_json;
pub use physical_metadata::decode_physical_tree_definition_json;
pub use physical_metadata::encode_persisted_physical_hypertable_chunk_json;
pub use physical_metadata::encode_persisted_physical_hypertable_json;
pub use physical_metadata::encode_persisted_physical_index_state_json;
pub use physical_metadata::encode_physical_analytical_storage_json;
pub use physical_metadata::encode_physical_analytics_job_json;
pub use physical_metadata::encode_physical_analytics_view_descriptor_json;
pub use physical_metadata::encode_physical_block_reference_json;
pub use physical_metadata::encode_physical_catalog_snapshot_json;
pub use physical_metadata::encode_physical_collection_contract_json;
pub use physical_metadata::encode_physical_declared_column_contract_json;
pub use physical_metadata::encode_physical_export_descriptor_json;
pub use physical_metadata::encode_physical_graph_projection_json;
pub use physical_metadata::encode_physical_manifest_event_json;
pub use physical_metadata::encode_physical_manifest_pointers_json;
pub use physical_metadata::encode_physical_metadata_binary_document;
pub use physical_metadata::encode_physical_metadata_document_root_json;
pub use physical_metadata::encode_physical_metadata_json_document;
pub use physical_metadata::encode_physical_schema_manifest_json;
pub use physical_metadata::encode_physical_snapshot_descriptor_json;
pub use physical_metadata::encode_physical_subscription_descriptor_json;
pub use physical_metadata::encode_physical_superblock_json;
pub use physical_metadata::encode_physical_tree_definition_json;
pub use physical_metadata::list_physical_metadata_journal_paths;
pub use physical_metadata::physical_manifest_block_reference;
pub use physical_metadata::physical_superblock_checkpoint_event;
pub use physical_metadata::physical_superblock_object_key;
pub use physical_metadata::prune_physical_metadata_journal_paths;
pub use physical_metadata::read_physical_metadata_document;
pub use physical_metadata::write_physical_metadata_binary_document;
pub use physical_metadata::write_physical_metadata_json_document;
pub use physical_metadata::BlockReference;
pub use physical_metadata::ExportDescriptor;
pub use physical_metadata::ManifestEvent;
pub use physical_metadata::ManifestEventKind;
pub use physical_metadata::ManifestPointers;
pub use physical_metadata::PersistedPhysicalHypertable;
pub use physical_metadata::PersistedPhysicalHypertableChunk;
pub use physical_metadata::PersistedPhysicalIndexState;
pub use physical_metadata::PhysicalAnalyticalStorageConfig;
pub use physical_metadata::PhysicalAnalyticsJob;
pub use physical_metadata::PhysicalAnalyticsViewDescriptor;
pub use physical_metadata::PhysicalCatalogCollectionStats;
pub use physical_metadata::PhysicalCatalogSnapshot;
pub use physical_metadata::PhysicalCollectionContract;
pub use physical_metadata::PhysicalDeclaredColumnContract;
pub use physical_metadata::PhysicalGraphProjection;
pub use physical_metadata::PhysicalMetadataDocumentEnvelope;
pub use physical_metadata::PhysicalPageLocation;
pub use physical_metadata::PhysicalSchemaManifest;
pub use physical_metadata::PhysicalSchemaOptions;
pub use physical_metadata::PhysicalSqlTypeName;
pub use physical_metadata::PhysicalSubscriptionDescriptor;
pub use physical_metadata::PhysicalTreeDefinition;
pub use physical_metadata::PhysicalTypeModifier;
pub use physical_metadata::SnapshotDescriptor;
pub use physical_metadata::SuperblockHeader;
pub use physical_metadata::DEFAULT_PHYSICAL_FORMAT_VERSION;
pub use physical_metadata::DEFAULT_SUPERBLOCK_COPIES;
pub use physical_metadata::PHYSICAL_METADATA_PROTOCOL_VERSION;
pub use physical_metadata::PHYSICAL_SYSTEM_COLLECTION;
pub use physical_metadata_policy::fold_dwb_into_wal_enabled;
pub use physical_metadata_policy::fold_pager_meta_enabled;
pub use physical_metadata_policy::meta_json_sidecar_enabled;
pub use physical_metadata_policy::seqn_journal_enabled;
pub use physical_metadata_policy::seqn_journal_retention;
pub use physical_metadata_policy::set_fold_dwb_into_wal_enabled;
pub use physical_metadata_policy::set_fold_pager_meta_enabled;
pub use physical_metadata_policy::set_meta_json_sidecar_enabled;
pub use physical_metadata_policy::set_seqn_journal_enabled;
pub use physical_metadata_policy::set_seqn_journal_retention;
pub use physical_metadata_policy::DEFAULT_METADATA_JOURNAL_RETENTION;
pub use physical_metadata_policy::OPT_IN_METADATA_JOURNAL_RETENTION;
pub use ui_bundle_cache::decode_ui_bundle_manifest_json;
pub use ui_bundle_cache::encode_ui_bundle_manifest_json;
pub use ui_bundle_cache::promote_ui_bundle_staging;
pub use ui_bundle_cache::ui_bundle_cache_root;
pub use ui_bundle_cache::ui_bundle_manifest_path;
pub use ui_bundle_cache::ui_bundle_manifest_temp_path;
pub use ui_bundle_cache::ui_bundle_purge_dir;
pub use ui_bundle_cache::ui_bundle_purge_root;
pub use ui_bundle_cache::ui_bundle_staging_dir;
pub use ui_bundle_cache::ui_bundle_staging_root;
pub use ui_bundle_cache::ui_bundle_version_dir;
pub use ui_bundle_cache::write_ui_bundle_manifest;
pub use ui_bundle_cache::UiBundleManifest;
pub use ui_bundle_cache::UI_BUNDLE_CACHE_DIR_NAME;
pub use ui_bundle_cache::UI_BUNDLE_MANIFEST_FILE;
pub use ui_bundle_cache::UI_BUNDLE_PURGE_DIR_NAME;
pub use ui_bundle_cache::UI_BUNDLE_STAGING_DIR_NAME;
pub use primary_replica::cleanup_rebootstrap_artifacts;
pub use primary_replica::decode_rebootstrap_ready_marker_json;
pub use primary_replica::discard_ready_rebootstrap_marker;
pub use primary_replica::encode_rebootstrap_ready_marker_json;
pub use primary_replica::promote_rebootstrap_pending_database;
pub use primary_replica::read_rebootstrap_ready_marker;
pub use primary_replica::write_rebootstrap_ready_marker;
pub use primary_replica::BaseBackupChunkRef;
pub use primary_replica::BaseBackupPlan;
pub use primary_replica::PrimaryReplicaBaseBackupManifest;
pub use primary_replica::PrimaryReplicaFilePlan;
pub use primary_replica::PrimaryReplicaWalRecord;
pub use primary_replica::PrimaryReplicaWalSegment;
pub use primary_replica::PromotionCandidate;
pub use primary_replica::RejoinDecision;
pub use primary_replica::RelayLogSegmentRef;
pub use primary_replica::ReplicaAck;
pub use primary_replica::ReplicaCatchupMode;
pub use primary_replica::ReplicaRebootstrapReadyMarker;
pub use primary_replica::ReplicaRelayLogManifest;
pub use primary_replica::ReplicaRelayLogRecord;
pub use primary_replica::ReplicaRelayLogSegment;
pub use primary_replica::ReplicationDurability;
pub use primary_replica::ReplicationSlot;
pub use primary_replica::ReplicationSlotCatalog;
pub use primary_replica::ReplicationSlotInvalidationCause;
pub use primary_replica::TimelineHistory;
pub use primary_replica::TimelineHistoryEntry;
pub use primary_replica::TimelineId;
pub use primary_replica::WalPruneResult;
pub use primary_replica::WalRetentionPlan;
pub use primary_replica::WalRetentionPolicy;
pub use profile::FileArtifactKind;
pub use profile::FileProfile;
pub use serverless::decode_serverless_writer_lease_json;
pub use serverless::encode_serverless_writer_lease_json;
pub use serverless::serverless_writer_lease_key;
pub use serverless::serverless_writer_lease_temp_path;
pub use serverless::ServerlessBootIndex;
pub use serverless::ServerlessBootIndexEntry;
pub use serverless::ServerlessBootPlan;
pub use serverless::ServerlessCacheEntry;
pub use serverless::ServerlessCacheEvictionPlan;
pub use serverless::ServerlessCachePolicy;
pub use serverless::ServerlessContentHash;
pub use serverless::ServerlessExtentIndex;
pub use serverless::ServerlessExtentRef;
pub use serverless::ServerlessFilePlan;
pub use serverless::ServerlessGenerationPointer;
pub use serverless::ServerlessHydratedRange;
pub use serverless::ServerlessHydrationPlan;
pub use serverless::ServerlessHydrationRequest;
pub use serverless::ServerlessLocalCache;
pub use serverless::ServerlessManifest;
pub use serverless::ServerlessManifestEntry;
pub use serverless::ServerlessPackKind;
pub use serverless::ServerlessSecondaryIndex;
pub use serverless::ServerlessSecondaryIndexEntry;
pub use serverless::ServerlessWriterLease;
pub use serverless::ServerlessWriterLeaseTempFile;
pub use serverless::SERVERLESS_WRITER_LEASE_DEFAULT_TERM;
pub use shm::initialize_shm_file;
pub use shm::read_shm_header_from_file;
pub use shm::write_shm_header_to_file;
pub use shm::ShmHeader;
pub use shm::SHM_FILE_SIZE;
pub use shm::SHM_HEADER_SIZE;
pub use shm::SHM_MAGIC;
pub use shm::SHM_VERSION;
pub use spill::decode_spill_file_frame;
pub use spill::default_spill_dir;
pub use spill::encode_spill_file_frame;
pub use spill::is_spill_file_path;
pub use spill::spill_file_name;
pub use spill::SpillFileFrameError;
pub use spill::DEFAULT_SPILL_DIR_NAME;
pub use spill::SPILL_FILE_EXTENSION;
pub use spill::SPILL_FILE_HEADER_LEN;
pub use spill::SPILL_FILE_MAGIC;
pub use spill::SPILL_FILE_VERSION_V1;
pub use spill::SPILL_FILE_VERSION_V2;
pub use store_wal::decode_store_wal_action_frame;
pub use store_wal::encode_store_wal_action_frame;
pub use store_wal::StoreWalActionFrame;
pub use store_wal::STORE_WAL_ACTION_VERSION;
pub use table_def_codec::decode_table_def;
pub use table_def_codec::encode_table_def;
pub use table_def_codec::ColumnLayout;
pub use table_def_codec::ConstraintLayout;
pub use table_def_codec::IndexLayout;
pub use table_def_codec::TableDefCodecError;
pub use table_def_codec::TableDefLayout;
pub use table_def_codec::TABLE_DEF_MAGIC;
pub use transaction_wal::decode_transaction_wal_entry_payload;
pub use transaction_wal::decode_transaction_wal_record_frame;
pub use transaction_wal::encode_transaction_wal_entry_payload;
pub use transaction_wal::encode_transaction_wal_record_frame;
pub use transaction_wal::transaction_wal_record_encoded_len;
pub use transaction_wal::TransactionWalEntryPayload;
pub use transaction_wal::TransactionWalRecordFrame;
pub use transaction_wal::TRANSACTION_WAL_RECORD_CHECKSUM_LEN;
pub use transaction_wal::TRANSACTION_WAL_RECORD_HEADER_LEN;
pub use transaction_wal::TRANSACTION_WAL_RECORD_LEN_LEN;
pub use transaction_wal::TRANSACTION_WAL_RECORD_MIN_LEN;
pub use turboquant_snapshot::read_turboquant_snapshot;
pub use turboquant_snapshot::write_turboquant_snapshot;
pub use turboquant_snapshot::TurboQuantSnapshotError;
pub use turboquant_snapshot::TurboQuantSnapshotPayload;
pub use turboquant_snapshot::TURBOQUANT_SNAPSHOT_HEADER_BYTES;
pub use vault_export_envelope::decode as decode_vault_logical_export;
pub use vault_export_envelope::encode as encode_vault_logical_export;
pub use vault_export_envelope::VaultExportEnvelope;
pub use vault_export_envelope::VaultExportEnvelopeError;
pub use vault_export_envelope::VAULT_EXPORT_NONCE_SIZE;
pub use vault_export_envelope::VAULT_EXPORT_SALT_SIZE;
pub use vault_export_envelope::VAULT_LOGICAL_EXPORT_AAD;
pub use vault_export_envelope::VAULT_LOGICAL_EXPORT_MAGIC;
pub use vault_export_envelope::VAULT_LOGICAL_EXPORT_VERSION;
pub use wal_header::decode_wal_file_header;
pub use wal_header::encode_wal_file_header;
pub use wal_header::next_main_wal_segment_boundary;
pub use wal_header::WalFileHeader;
pub use wal_header::MAIN_WAL_SEGMENT_BYTES;
pub use wal_header::WAL_FILE_HEADER_BYTES;
pub use wal_header::WAL_FILE_MAGIC;
pub use wal_header::WAL_FILE_VERSION;
pub use wal_header::WAL_FILE_VERSION_V2;
pub use wal_record::decode_main_wal_record_frame;
pub use wal_record::encode_main_wal_record_frame;
pub use wal_record::encode_main_wal_record_frame_into;
pub use wal_record::MainWalCompression;
pub use wal_record::MainWalRecordFrame;
pub use wal_record::MainWalRecordType;
pub use wal_record::MAIN_WAL_DEFAULT_COMPRESS_THRESHOLD;
pub use zone_map::read_zone_map_sidecar;
pub use zone_map::write_zone_map_sidecar;
pub use zone_map::PersistedZone;
pub use zone_map::ZoneMapPersistError;

Modules§

ai_model_cache
Local AI model cache file contracts.
audit_log
Audit-log file lifecycle helpers.
backup_manifest
Backup, snapshot, and archived WAL manifest contracts.
backup_temp
blob_cache
bloom_segment
Persisted bloom-segment frame shared by storage/index owners.
btree_value_layout
Persisted value-cell layout for B-tree leaf payloads.
column_block
Persisted RDCC column-block envelope.
control_store
embedded
Embedded single-file .rdb artifact.
file_format
Core persisted file-format constants.
graph_label_registry
Persisted graph label-registry frame.
graph_record
Persisted graph node/edge record frames.
graph_store
Persisted graph-store envelope.
graph_table_index
Persisted graph-table index frame.
hnsw_index_codec
On-disk codec for the HNSW vector-index payload.
ivf_index_codec
On-disk codec for the IVF1 vector-index payload.
layout
Canonical file and sidecar path derivation.
local_backend
Local filesystem backend file operations.
logical_wal
Logical WAL spool file contract.
native_artifact_codec
On-disk codecs for the server-defined native artifact payloads: RDGA (graph adjacency), RDFT (full-text index), and RDDP (document path/value). These are derived index artifacts persisted into the native store; reddb-file owns their byte layout (ADR 0046) while the tokenisation / index-construction algorithms stay in the server engine.
native_store
Native unified-store file contracts.
operational_manifest
Crash-safe operational manifest for mutable collection files.
physical_metadata
Physical metadata document file contract.
physical_metadata_policy
Process-wide policy knobs for physical metadata sidecars.
primary_replica
Primary-replica file planning.
profile
File-level deployment profile vocabulary.
serverless
Serverless file planning and boot artifact codecs.
shm
Shared-memory file contract.
spill
Spill file frame contract.
store_wal
UnifiedStore WAL action frame contract.
table_def_codec
On-disk codec for the RTBL table-definition payload.
transaction_wal
Transaction WAL record envelope.
turboquant_snapshot
ui_bundle_cache
Local red ui bundle cache file contracts.
vault_export_envelope
Logical vault export envelope framing (RDVX).
vector_btree_page_format
On-disk page format for the vector B-tree large-value path.
vector_value_codec
Large-value codec for vector/B-tree persisted payloads.
wal_header
Main WAL file header contract.
wal_record
Main WAL record byte contract.
zone_map