mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
sqlite: stub
This commit is contained in:
35
sqlx-core/src/sqlite/database.rs
Normal file
35
sqlx-core/src/sqlite/database.rs
Normal file
@@ -0,0 +1,35 @@
|
||||
use crate::database::{Database, HasCursor, HasRawValue, HasRow};
|
||||
use crate::sqlite::arguments::SqliteValue;
|
||||
|
||||
/// **Sqlite** database driver.
|
||||
pub struct Sqlite;
|
||||
|
||||
impl Database for Sqlite {
|
||||
type Connection = super::SqliteConnection;
|
||||
|
||||
type Arguments = super::SqliteArguments;
|
||||
|
||||
type TypeInfo = super::SqliteTypeInfo;
|
||||
|
||||
// TODO?
|
||||
type TableId = u32;
|
||||
|
||||
type RawBuffer = Vec<SqliteValue>;
|
||||
}
|
||||
|
||||
impl<'a> HasRow<'a> for Sqlite {
|
||||
type Database = Sqlite;
|
||||
|
||||
type Row = super::SqliteRow<'a>;
|
||||
}
|
||||
|
||||
impl<'s, 'q> HasCursor<'s, 'q> for Sqlite {
|
||||
type Database = Sqlite;
|
||||
|
||||
type Cursor = super::SqliteCursor<'s, 'q>;
|
||||
}
|
||||
|
||||
impl<'a> HasRawValue<'a> for Sqlite {
|
||||
// TODO
|
||||
type RawValue = Option<()>;
|
||||
}
|
||||
Reference in New Issue
Block a user