T-174: M2.2p — tools/curate-etl: zero-copy raw BSON decoder for MongoDB teData (bson_te_data.rs → TeDataPoint<&str>, data only, forecast never read, fail-closed d/v handling) with tests (no new crates, no CLI/bench/stream changes, no live Mongo)

This commit is contained in:
Studio 2026-12-02 15:15:58 -05:00
parent f2ae15e0b3
commit f72f1f552f
4 changed files with 1752 additions and 0 deletions

View file

@ -14,6 +14,7 @@ pub mod bson_qm_financials;
pub mod bson_qm_intraday;
pub mod bson_qm_prices;
pub mod bson_stream;
pub mod bson_te_data;
pub mod bson_te_market_data;
pub mod cli;
pub mod corporate_actions;
@ -109,6 +110,10 @@ pub use bson_stream::{
BsonQmFinancialsStreamError, BsonStreamError, BsonStreamOptions, RawBsonChunk,
RawBsonChunkReader, DEFAULT_CHUNK_CAPACITY_BYTES, DEFAULT_MAX_DOC_BYTES, MIN_BSON_DOC_BYTES,
};
pub use bson_te_data::{
decode_te_data_buffer, decode_te_data_bytes, decode_te_data_doc, BsonTeDataDecodeStats,
BsonTeDataError, TeDataPoint,
};
pub use bson_te_market_data::{
decode_te_market_data_buffer, decode_te_market_data_bytes, decode_te_market_data_doc,
te_epoch_i64_to_session_date, BsonTeMarketDataDecodeStats, BsonTeMarketDataError, FIELD_DAILY,