mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
fix lints
This commit is contained in:
parent
d4f8242d0c
commit
7c83680231
@ -223,12 +223,12 @@ impl Context<'_> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the db connection handle via sqlite3_context_db_handle
|
/// Get the db connection handle via [sqlite3_context_db_handle](https://www.sqlite.org/c3ref/context_db_handle.html)
|
||||||
/// https://www.sqlite.org/c3ref/context_db_handle.html
|
///
|
||||||
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// This function is marked unsafe because there is a potential for other
|
/// This function is marked unsafe because there is a potential for other
|
||||||
/// references to the connection to be sent across threads
|
/// references to the connection to be sent across threads, [see this comment](https://github.com/rusqlite/rusqlite/issues/643#issuecomment-640181213).
|
||||||
/// https://github.com/rusqlite/rusqlite/issues/643#issuecomment-640181213
|
|
||||||
pub unsafe fn get_connection(&self) -> Result<ConnectionRef<'_>> {
|
pub unsafe fn get_connection(&self) -> Result<ConnectionRef<'_>> {
|
||||||
let handle = ffi::sqlite3_context_db_handle(self.ctx);
|
let handle = ffi::sqlite3_context_db_handle(self.ctx);
|
||||||
Ok(ConnectionRef {
|
Ok(ConnectionRef {
|
||||||
|
Loading…
Reference in New Issue
Block a user