1pub(crate) use sqlx_core::database::{Database, HasStatementCache};
2
3use crate::{
4 SqliteArgumentValue, SqliteArguments, SqliteColumn, SqliteConnection, SqliteQueryResult,
5 SqliteRow, SqliteStatement, SqliteTransactionManager, SqliteTypeInfo, SqliteValue,
6 SqliteValueRef,
7};
8
9#[derive(Debug)]
11pub struct Sqlite;
12
13impl Database for Sqlite {
14 type Connection = SqliteConnection;
15
16 type TransactionManager = SqliteTransactionManager;
17
18 type Row = SqliteRow;
19
20 type QueryResult = SqliteQueryResult;
21
22 type Column = SqliteColumn;
23
24 type TypeInfo = SqliteTypeInfo;
25
26 type Value = SqliteValue;
27 type ValueRef<'r> = SqliteValueRef<'r>;
28
29 type Arguments<'q> = SqliteArguments<'q>;
30 type ArgumentBuffer<'q> = Vec<SqliteArgumentValue<'q>>;
31
32 type Statement<'q> = SqliteStatement<'q>;
33
34 const NAME: &'static str = "SQLite";
35
36 const URL_SCHEMES: &'static [&'static str] = &["sqlite"];
37}
38
39impl HasStatementCache for Sqlite {}