add is_read_only()/is_secondary() to Engine
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
4b652f5236
commit
59834a4b05
2 changed files with 10 additions and 2 deletions
|
@ -38,11 +38,11 @@ impl Database {
|
|||
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn is_read_only(&self) -> bool { self.db.secondary || self.db.read_only }
|
||||
pub fn is_read_only(&self) -> bool { self.db.is_read_only() }
|
||||
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn is_secondary(&self) -> bool { self.db.secondary }
|
||||
pub fn is_secondary(&self) -> bool { self.db.is_secondary() }
|
||||
}
|
||||
|
||||
impl Index<&str> for Database {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue