pub struct SqlitePragmaOptions {
pub journal_mode: String,
pub synchronous: String,
pub foreign_keys: bool,
pub temp_store: String,
pub wal_autocheckpoint_pages: u32,
pub cache_size_kib: i64,
pub mmap_size_bytes: u64,
}Expand description
SQLite 连接层 pragma 配置。 SQLite pragma configuration used by the library/runtime layer.
Fields§
§journal_mode: String期望的 journal 模式。 Requested journal mode.
synchronous: String期望的 synchronous 模式。 Requested synchronous mode.
foreign_keys: bool是否启用外键。 Whether foreign keys are enabled.
temp_store: String临时存储模式。 Temporary storage mode.
wal_autocheckpoint_pages: u32WAL 自动 checkpoint 页数。 WAL auto-checkpoint page count.
cache_size_kib: i64SQLite cache 大小(KiB)。 SQLite cache size in KiB.
mmap_size_bytes: u64mmap 大小(字节)。 mmap size in bytes.
Trait Implementations§
Source§impl Clone for SqlitePragmaOptions
impl Clone for SqlitePragmaOptions
Source§fn clone(&self) -> SqlitePragmaOptions
fn clone(&self) -> SqlitePragmaOptions
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 SqlitePragmaOptions
impl Debug for SqlitePragmaOptions
Auto Trait Implementations§
impl Freeze for SqlitePragmaOptions
impl RefUnwindSafe for SqlitePragmaOptions
impl Send for SqlitePragmaOptions
impl Sync for SqlitePragmaOptions
impl Unpin for SqlitePragmaOptions
impl UnsafeUnpin for SqlitePragmaOptions
impl UnwindSafe for SqlitePragmaOptions
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