sqlx_firebird/
value.rs

1//
2// Copyright © 2023, RedSoft
3// License: MIT
4//
5
6use std::borrow::Cow;
7
8use sqlx_core::value::{Value, ValueRef};
9
10use crate::{FbTypeInfo, Firebird};
11
12#[derive(Debug)]
13pub struct FbValue;
14
15impl Value for FbValue {
16    type Database = Firebird;
17
18    fn as_ref(&self) -> FbValueRef<'_> {
19        todo!()
20    }
21
22    fn type_info(&self) -> Cow<'_, FbTypeInfo> {
23        todo!()
24    }
25
26    fn is_null(&self) -> bool {
27        todo!()
28    }
29}
30
31enum FbValueData<'r> {
32    Value(&'r FbValue),
33}
34
35pub struct FbValueRef<'r>(FbValueData<'r>);
36
37impl<'r> ValueRef<'r> for FbValueRef<'r> {
38    type Database = Firebird;
39
40    fn to_owned(&self) -> FbValue {
41        todo!()
42    }
43
44    fn type_info(&self) -> Cow<'_, FbTypeInfo> {
45        todo!()
46    }
47
48    fn is_null(&self) -> bool {
49        todo!()
50    }
51}