sqlx_core_oldapi/sqlite/
database.rs1use crate::database::{Database, HasArguments, HasStatement, HasStatementCache, HasValueRef};
2use crate::sqlite::{
3 SqliteArgumentValue, SqliteArguments, SqliteColumn, SqliteConnection, SqliteQueryResult,
4 SqliteRow, SqliteStatement, SqliteTransactionManager, SqliteTypeInfo, SqliteValue,
5 SqliteValueRef,
6};
7
8#[derive(Debug)]
10pub struct Sqlite;
11
12impl Database for Sqlite {
13 type Connection = SqliteConnection;
14
15 type TransactionManager = SqliteTransactionManager;
16
17 type Row = SqliteRow;
18
19 type QueryResult = SqliteQueryResult;
20
21 type Column = SqliteColumn;
22
23 type TypeInfo = SqliteTypeInfo;
24
25 type Value = SqliteValue;
26}
27
28impl<'r> HasValueRef<'r> for Sqlite {
29 type Database = Sqlite;
30
31 type ValueRef = SqliteValueRef<'r>;
32}
33
34impl<'q> HasArguments<'q> for Sqlite {
35 type Database = Sqlite;
36
37 type Arguments = SqliteArguments<'q>;
38
39 type ArgumentBuffer = Vec<SqliteArgumentValue<'q>>;
40}
41
42impl<'q> HasStatement<'q> for Sqlite {
43 type Database = Sqlite;
44
45 type Statement = SqliteStatement<'q>;
46}
47
48impl HasStatementCache for Sqlite {}