sqlx_firebird/statement/
mod.rs

1//
2// Copyright © 2023, RedSoft
3// License: MIT
4//
5
6use std::borrow::Cow;
7
8use sqlx_core::column::ColumnIndex;
9use sqlx_core::statement::Statement;
10use sqlx_core::Either;
11use sqlx_core::{impl_statement_query, Error};
12
13use crate::{FbArguments, FbColumn, FbTypeInfo, Firebird};
14
15#[derive(Debug, Clone)]
16pub struct FbStatement<'q> {
17    pub(crate) sql: Cow<'q, str>,
18}
19
20impl<'q> Statement<'q> for FbStatement<'q> {
21    type Database = Firebird;
22
23    fn to_owned(&self) -> FbStatement<'static> {
24        todo!()
25    }
26
27    fn sql(&self) -> &str {
28        &self.sql
29    }
30
31    fn parameters(&self) -> Option<Either<&[FbTypeInfo], usize>> {
32        todo!()
33    }
34
35    fn columns(&self) -> &[FbColumn] {
36        todo!()
37    }
38
39    impl_statement_query!(FbArguments<'_>);
40}
41
42impl ColumnIndex<FbStatement<'_>> for &'_ str {
43    fn index(&self, container: &FbStatement<'_>) -> Result<usize, Error> {
44        todo!()
45    }
46}