pub struct SqliteOpenOptions {
pub connection_pool_size: usize,
pub busy_timeout_ms: u64,
pub pragmas: SqlitePragmaOptions,
pub hardening: SqliteHardeningOptions,
}Expand description
单个 SQLite 库的程序化打开选项。 Programmatic open options for a single SQLite database.
Fields§
§connection_pool_size: usize建议连接池大小;库 runtime 当前主要将其作为元信息保留。 Suggested connection-pool size; currently retained as metadata by the library runtime.
busy_timeout_ms: u64busy_timeout,单位毫秒。 busy_timeout in milliseconds.
pragmas: SqlitePragmaOptionsSQLite pragma 选项。 SQLite pragma options.
hardening: SqliteHardeningOptionsSQLite 安全硬化选项。 SQLite hardening options.
Trait Implementations§
Source§impl Clone for SqliteOpenOptions
impl Clone for SqliteOpenOptions
Source§fn clone(&self) -> SqliteOpenOptions
fn clone(&self) -> SqliteOpenOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqliteOpenOptions
impl Debug for SqliteOpenOptions
Auto Trait Implementations§
impl Freeze for SqliteOpenOptions
impl RefUnwindSafe for SqliteOpenOptions
impl Send for SqliteOpenOptions
impl Sync for SqliteOpenOptions
impl Unpin for SqliteOpenOptions
impl UnsafeUnpin for SqliteOpenOptions
impl UnwindSafe for SqliteOpenOptions
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request