pub struct SqliteConfig {
    pub unsafe_load_extensions: Vec<String>,
}Expand description
Configuration for the SQLite database driver.
Fields§
§unsafe_load_extensions: Vec<String>Specify extensions to load, either by name or by path.
Paths should be relative to the workspace root.
See Loading an Extension in the SQLite manual for details.
The sqlite-load-extension feature must be enabled and SQLite must be built
without SQLITE_OMIT_LOAD_EXTENSION enabled.
§Note: Does Not Configure Runtime Extension Loading
Extensions to be loaded at runtime must be separately configured with
SqliteConnectOptions::extension() or SqliteConnectOptions::extension_with_entrypoint().
§Safety
This causes arbitrary DLLs on the filesystem to be loaded at execution time, which can easily result in undefined behavior, memory corruption, or exploitable vulnerabilities if misused.
It is not possible to provide a truly safe version of this API.
Use this field with care, and only load extensions that you trust.
§Example
Load the uuid and vsv extensions from sqlean.
sqlx.toml:
[common.drivers.sqlite]
unsafe-load-extensions = ["uuid", "vsv"]Trait Implementations§
Source§impl Debug for SqliteConfig
 
impl Debug for SqliteConfig
Source§impl Default for SqliteConfig
 
impl Default for SqliteConfig
Source§fn default() -> SqliteConfig
 
fn default() -> SqliteConfig
Auto Trait Implementations§
impl Freeze for SqliteConfig
impl RefUnwindSafe for SqliteConfig
impl Send for SqliteConfig
impl Sync for SqliteConfig
impl Unpin for SqliteConfig
impl UnwindSafe for SqliteConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
 
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more