Expand description
Safe storage-engine interface for downstream implementations
Structs§
- Cost
Estimate - A cost estimate an engine reports to the optimizer, mirroring MySQL’s
Cost_estimate. - Parallel
Scan Init - The two outputs of
StorageEngine::parallel_scan_init: the engine-owned scan context that every laterparallel_scan*call receives back, and the number of worker threads the engine will drive. - Range
Key - One endpoint of a range scan, mirroring the relevant fields of MySQL’s
key_range. The shim resolves the originalkey_part_mapto the leading key bytes before crossing the FFI boundary, sokeyis already length-resolved; the borrow may not be retained past the callback that supplied it.
Enums§
- Bulk
Access - Whether the engine batches the rows of a multi-row UPDATE or DELETE itself, or lets MySQL drive the statement one row at a time.
- Engine
Error - Errors a storage engine can return; each maps to a MySQL
HA_ERR_*code - RKey
Function - Search semantics for an index lookup, mirroring MySQL’s
ha_rkey_function. - Reset
Cached State - Whether MySQL has just reset the data-dictionary entry and any cached engine-private metadata should be re-emitted from scratch
- Sampling
Method - Sampling algorithm requested for
StorageEngine::sample_init, mirroring MySQL’senum_sampling_method.
Traits§
- Storage
Engine - The safe interface every storage engine implements.
Type Aliases§
- Engine
Result - Result alias used throughout the
StorageEnginetrait