2 releases

new 0.1.2 Dec 10, 2024
0.1.1 Dec 5, 2024

#73 in Database implementations

Download history 121/week @ 2024-12-02

121 downloads per month
Used in trs-dataframe

Custom license

84KB
2K SLoC

DataValue

Description

This is just simple wrapper for different data types. It's building block for dataframe and other parts of eco-system.

Usage

use data_value::{stdhashmap, DataValue, datavalue};

let dataset = datavalue!(
        "name" => "test",
        "age"=> 42i64,
        "address"=> datavalue!{
            "city" => "test",
            "street"=> "test"
        },
        "list"=> datavalue!([1i64, 2i64, 3i64])
);

let json_dataset = serde_json::json!({
        "name": "test",
        "age": 42,
        "address": {
            "city": "test",
            "street": "test"
        },
        "list": [1, 2, 3]
    });
let json_dv = DataValue::from(json_dataset);

assert_eq!(dataset, json_dv);

Coverage

cargo llvm-cov --lcov --output-path lcov.info

Dependencies

~1–2.7MB
~54K SLoC