sqlx_xugu/
database.rs

1use crate::arguments::XuguArgumentValue;
2use crate::column::XuguColumn;
3use crate::connection::XuguConnection;
4use crate::type_info::XuguTypeInfo;
5use crate::value::{XuguValue, XuguValueRef};
6use crate::{XuguArguments, XuguQueryResult, XuguRow, XuguStatement, XuguTransactionManager};
7use sqlx_core::database::{Database, HasStatementCache};
8
9/// Xugu database driver.
10#[derive(Debug)]
11pub struct Xugu;
12
13impl Database for Xugu {
14    type Connection = XuguConnection;
15
16    type TransactionManager = XuguTransactionManager;
17
18    type Row = XuguRow;
19
20    type QueryResult = XuguQueryResult;
21
22    type Column = XuguColumn;
23
24    type TypeInfo = XuguTypeInfo;
25
26    type Value = XuguValue;
27    type ValueRef<'r> = XuguValueRef<'r>;
28
29    type Arguments<'q> = XuguArguments<'q>;
30    type ArgumentBuffer<'q> = Vec<XuguArgumentValue<'q>>;
31
32    type Statement<'q> = XuguStatement<'q>;
33
34    const NAME: &'static str = "Xugu";
35
36    const URL_SCHEMES: &'static [&'static str] = &["xugu"];
37}
38
39impl HasStatementCache for Xugu {}