#parser #sql-server #file #read #reader #mdf

oxidized-mdf

A crate for reading data storage files of MSSQL's MDF files

2 unstable releases

0.2.0 Nov 13, 2021
0.1.0 Apr 5, 2021

#2592 in Database interfaces

GPL-3.0 license

65KB
1.5K SLoC

oxidized-mdf's build status

oxidized-mdf

oxidized-mdf provides a reader library for SQL Server Database File written in Rust.

In order to read a MDF file checkout the code and run the example:

cargo run --example print_all -- data/spg_verein_TST.mdf

# For more information use the help:
cargo run --example print_all -- --help

Why is This Crate Licensed Under the GPLv3?

The code is based on OrcaMDF and the original code is licensed under the GPLv3.


lib.rs:

A Crate for Parsing MDF files

oxidized-mdf provides utifities to parse MDF files of the Microsoft SQL Server.

use oxidized_mdf::MdfDatabase;
use async_std::stream::StreamExt;

let mut db = MdfDatabase::open("data/AWLT2005.mdf").await.unwrap();
let mut rows = db.rows("Address").unwrap();

while let Some(row) = rows.next().await {
   println!("{:?}", row.value("City"));
}

Dependencies

~15–28MB
~488K SLoC