sqlx-firebird 0.1.0-beta.1

sqlx firebird driver
Documentation
//
// Copyright © 2023, RedSoft
// License: MIT
//

use futures_core::future::BoxFuture;
use futures_core::stream::BoxStream;
use sqlx_core::describe::Describe;
use sqlx_core::error::Error;
use sqlx_core::executor::{Execute, Executor};
use sqlx_core::Either;

use crate::{FbConnection, FbQueryResult, FbRow, FbStatement, FbTypeInfo, Firebird};

impl<'c> Executor<'c> for &'c mut FbConnection {
    type Database = Firebird;

    fn fetch_many<'e, 'q: 'e, E: 'q>(
        self, query: E,
    ) -> BoxStream<'e, Result<Either<FbQueryResult, FbRow>, Error>>
    where
        'c: 'e,
        E: Execute<'q, Self::Database>,
    {
        todo!()
    }

    fn fetch_optional<'e, 'q: 'e, E: 'q>(
        self, query: E,
    ) -> BoxFuture<'e, Result<Option<FbRow>, Error>>
    where
        'c: 'e,
        E: Execute<'q, Self::Database>,
    {
        todo!()
    }

    fn describe<'e, 'q: 'e>(
        self, sql: &'q str,
    ) -> BoxFuture<'e, Result<Describe<Self::Database>, Error>>
    where
        'c: 'e,
    {
        todo!()
    }

    fn prepare_with<'e, 'q: 'e>(
        self, sql: &'q str, parameters: &'e [FbTypeInfo],
    ) -> BoxFuture<'e, Result<FbStatement<'q>, Error>>
    where
        'c: 'e,
    {
        todo!()
    }
}