pub struct ConnectionOptions {
pub allow_rewrites: bool,
pub read_only: bool,
pub busy_timeout: Duration,
pub foreign_keys: bool,
pub journal_mode: Option<SqliteJournalMode>,
}Expand description
Per-connection behavior that is safe to expose across all adapters.
Fields§
§allow_rewrites: boolPermit only dactyl’s explicitly safe dialect rewrites.
read_only: boolOpen SQLite in read-only mode. Ignored by Neon.
busy_timeout: DurationBusy timeout for SQLite lock contention. Ignored by Neon.
foreign_keys: boolEnable SQLite foreign-key enforcement. Ignored by Neon.
journal_mode: Option<SqliteJournalMode>SQLite journal mode. Read-only connections leave the existing mode unchanged. Ignored by Neon.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionOptions
impl Clone for ConnectionOptions
Source§fn clone(&self) -> ConnectionOptions
fn clone(&self) -> ConnectionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConnectionOptions
impl Debug for ConnectionOptions
Auto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnsafeUnpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
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