forked from transact-rs/sqlx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.rs
More file actions
32 lines (21 loc) 路 683 Bytes
/
Copy pathdatabase.rs
File metadata and controls
32 lines (21 loc) 路 683 Bytes
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
use crate::database::{Database, HasCursor, HasRawValue, HasRow};
/// **Sqlite** database driver.
pub struct Sqlite;
impl Database for Sqlite {
type Connection = super::SqliteConnection;
type Arguments = super::SqliteArguments;
type TypeInfo = super::SqliteTypeInfo;
type TableId = String;
type RawBuffer = Vec<super::SqliteArgumentValue>;
}
impl<'c> HasRow<'c> for Sqlite {
type Database = Sqlite;
type Row = super::SqliteRow<'c>;
}
impl<'s, 'q> HasCursor<'s, 'q> for Sqlite {
type Database = Sqlite;
type Cursor = super::SqliteCursor<'s, 'q>;
}
impl<'c> HasRawValue<'c> for Sqlite {
type RawValue = super::SqliteResultValue<'c>;
}