mssqlrust 1.0.2

Lightweight Rust library for Microsoft SQL Server using dataset and datatable
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::dataset::DataValue;

pub struct Parameter {
    pub name: String,
    pub value: DataValue,
}

impl Parameter {
    pub fn new<T>(name: &str, value: T) -> Self
    where
        T: Into<DataValue>,
    {
        Self {
            name: name.into(),
            value: value.into(),
        }
    }
}