sqlx_firebird/connection/
executor.rs1use futures_core::future::BoxFuture;
7use futures_core::stream::BoxStream;
8use sqlx_core::describe::Describe;
9use sqlx_core::error::Error;
10use sqlx_core::executor::{Execute, Executor};
11use sqlx_core::Either;
12
13use crate::{FbConnection, FbQueryResult, FbRow, FbStatement, FbTypeInfo, Firebird};
14
15impl<'c> Executor<'c> for &'c mut FbConnection {
16 type Database = Firebird;
17
18 fn fetch_many<'e, 'q: 'e, E: 'q>(
19 self, query: E,
20 ) -> BoxStream<'e, Result<Either<FbQueryResult, FbRow>, Error>>
21 where
22 'c: 'e,
23 E: Execute<'q, Self::Database>,
24 {
25 todo!()
26 }
27
28 fn fetch_optional<'e, 'q: 'e, E: 'q>(
29 self, query: E,
30 ) -> BoxFuture<'e, Result<Option<FbRow>, Error>>
31 where
32 'c: 'e,
33 E: Execute<'q, Self::Database>,
34 {
35 todo!()
36 }
37
38 fn describe<'e, 'q: 'e>(
39 self, sql: &'q str,
40 ) -> BoxFuture<'e, Result<Describe<Self::Database>, Error>>
41 where
42 'c: 'e,
43 {
44 todo!()
45 }
46
47 fn prepare_with<'e, 'q: 'e>(
48 self, sql: &'q str, parameters: &'e [FbTypeInfo],
49 ) -> BoxFuture<'e, Result<FbStatement<'q>, Error>>
50 where
51 'c: 'e,
52 {
53 todo!()
54 }
55}