mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-06-12 07:01:19 +00:00
Introduce Value representing an arbitrary value for binding and reading
This commit is contained in:
19
src/lib.rs
19
src/lib.rs
@ -121,10 +121,25 @@ pub enum Type {
|
||||
Float,
|
||||
/// The integer type.
|
||||
Integer,
|
||||
/// The null type.
|
||||
Null,
|
||||
/// The string type.
|
||||
String,
|
||||
/// The null type.
|
||||
Null,
|
||||
}
|
||||
|
||||
/// A typed value.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum Value {
|
||||
/// Binary data.
|
||||
Binary(Vec<u8>),
|
||||
/// A floating-point number.
|
||||
Float(f64),
|
||||
/// An integer.
|
||||
Integer(i64),
|
||||
/// A string.
|
||||
String(String),
|
||||
/// A null value.
|
||||
Null,
|
||||
}
|
||||
|
||||
impl fmt::Display for Error {
|
||||
|
Reference in New Issue
Block a user