Struct bitcoin_sqlite::SQLiteDatabase
source · pub struct SQLiteDatabase { /* private fields */ }
Expand description
| An instance of this class represents | one SQLite3 database. |
Implementations§
source§impl SQLiteDatabase
impl SQLiteDatabase
pub fn remove_ref(&mut self)
sourcepub fn flush(&mut self)
pub fn flush(&mut self)
| No-op. See comment on SQLiteDatabase::Flush | | No-ops | | SQLite always flushes everything to | the database file after each transaction | (each Read/Write/Erase that we do is | its own transaction unless we called | | TxnBegin) so there is no need to have | Flush or Periodic Flush. | | There is no DB env to reload, so ReloadDbEnv | has nothing to do |
pub fn periodic_flush(&mut self) -> bool
pub fn reload_db_env(&mut self)
pub fn increment_update_counter(&mut self)
pub fn filename(&mut self) -> String
pub fn format(&mut self) -> String
sourcepub fn new(dir_path: &Path, file_path: &Path, mock: Option<bool>) -> Self
pub fn new(dir_path: &Path, file_path: &Path, mock: Option<bool>) -> Self
| Create DB handle to real database |
pub fn cleanup(&mut self)
pub fn verify(&mut self, error: &mut BilingualStr) -> bool
sourcepub fn make_batch(&mut self, flush_on_close: Option<bool>) -> Box<DatabaseBatch>
pub fn make_batch(&mut self, flush_on_close: Option<bool>) -> Box<DatabaseBatch>
| Make a SQLiteBatch connected to this | database |
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SQLiteDatabase
impl !Send for SQLiteDatabase
impl !Sync for SQLiteDatabase
impl Unpin for SQLiteDatabase
impl !UnwindSafe for SQLiteDatabase
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more