mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-03 09:01:01 +00:00
feat: add Executor::prepare, a hook into the automatic statement preparation life-cycle
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use crate::database::{Database, HasArguments, HasStatementCache, HasValueRef};
|
||||
use crate::database::{Database, HasArguments, HasStatement, HasStatementCache, HasValueRef};
|
||||
use crate::sqlite::{
|
||||
SqliteArgumentValue, SqliteArguments, SqliteColumn, SqliteConnection, SqliteDone, SqliteRow,
|
||||
SqliteTransactionManager, SqliteTypeInfo, SqliteValue, SqliteValueRef,
|
||||
SqliteStatement, SqliteTransactionManager, SqliteTypeInfo, SqliteValue, SqliteValueRef,
|
||||
};
|
||||
|
||||
/// Sqlite database driver.
|
||||
@@ -38,4 +38,10 @@ impl<'q> HasArguments<'q> for Sqlite {
|
||||
type ArgumentBuffer = Vec<SqliteArgumentValue<'q>>;
|
||||
}
|
||||
|
||||
impl<'q> HasStatement<'q> for Sqlite {
|
||||
type Database = Sqlite;
|
||||
|
||||
type Statement = SqliteStatement<'q>;
|
||||
}
|
||||
|
||||
impl HasStatementCache for Sqlite {}
|
||||
|
||||
Reference in New Issue
Block a user