sqlite: stub

This commit is contained in:
Ryan Leckey
2020-03-11 09:21:15 -07:00
parent 553f03fa05
commit 5d042e35b1
14 changed files with 297 additions and 7 deletions

View 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<()>;
}