Struct ConnectionSettings
pub struct ConnectionSettings { /* private fields */ }Available on crate features
event-store or projection-store only.Expand description
What one connection is actually running under, read off that connection.
Not the constants above: the values SQLite answered when asked. The difference is the whole reason this type exists — see the module documentation.
Implementations§
§impl ConnectionSettings
impl ConnectionSettings
pub fn read_back(connection: &Connection) -> Result<Self>
pub fn read_back(connection: &Connection) -> Result<Self>
Asks connection what it is running under.
§Errors
Returns the driver’s error if one of the three pragmas cannot be read — which on a live connection means the connection itself has failed.
pub fn journal_mode(&self) -> &str
pub fn journal_mode(&self) -> &str
The journal mode in force, lowercased as SQLite reports it.
pub const fn synchronous(&self) -> i64
pub const fn synchronous(&self) -> i64
The synchronous level in force, as SQLite’s integer code.
pub const fn busy_timeout_ms(&self) -> i64
pub const fn busy_timeout_ms(&self) -> i64
The busy timeout in force, in milliseconds.
Trait Implementations§
§impl Clone for ConnectionSettings
impl Clone for ConnectionSettings
§impl Debug for ConnectionSettings
impl Debug for ConnectionSettings
impl Eq for ConnectionSettings
§impl PartialEq for ConnectionSettings
impl PartialEq for ConnectionSettings
impl StructuralPartialEq for ConnectionSettings
Auto Trait Implementations§
impl Freeze for ConnectionSettings
impl RefUnwindSafe for ConnectionSettings
impl Send for ConnectionSettings
impl Sync for ConnectionSettings
impl Unpin for ConnectionSettings
impl UnsafeUnpin for ConnectionSettings
impl UnwindSafe for ConnectionSettings
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