1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use crate::cursor::HasCursor;
use crate::database::Database;
use crate::row::HasRow;
use crate::sqlite::error::SqliteError;
use crate::sqlite::{
SqliteArgumentValue, SqliteArguments, SqliteConnection, SqliteCursor, SqliteRow,
SqliteTypeInfo, SqliteValue,
};
use crate::value::HasRawValue;
#[derive(Debug)]
pub struct Sqlite;
impl Database for Sqlite {
type Connection = SqliteConnection;
type Arguments = SqliteArguments;
type TypeInfo = SqliteTypeInfo;
type TableId = String;
type RawBuffer = Vec<SqliteArgumentValue>;
type Error = SqliteError;
}
impl<'c> HasRow<'c> for Sqlite {
type Database = Sqlite;
type Row = SqliteRow<'c>;
}
impl<'c, 'q> HasCursor<'c, 'q> for Sqlite {
type Database = Sqlite;
type Cursor = SqliteCursor<'c, 'q>;
}
impl<'c> HasRawValue<'c> for Sqlite {
type Database = Sqlite;
type RawValue = SqliteValue<'c>;
}