pub fn estimate_export_memory_requirement(database_size_bytes: u64) -> u64Expand description
Estimate memory requirement for exporting a database
Calculates the estimated memory needed to export a database of given size. Includes overhead for:
- Database content buffer
- Intermediate block buffers
- SQLite header and metadata
- Safety margin
§Arguments
database_size_bytes- Size of the database to export
§Returns
Estimated memory requirement in bytes (typically 1.5x-2x database size)
§Example
use absurder_sql::utils::estimate_export_memory_requirement;
let db_size = 100 * 1024 * 1024; // 100MB
let required_memory = estimate_export_memory_requirement(db_size);
println!("Estimated memory needed: {} bytes", required_memory);