pub struct DatabaseTransaction<'a> { /* private fields */ }Implementations§
Source§impl DatabaseTransaction<'_>
impl DatabaseTransaction<'_>
pub fn insert_note( &self, path: &str, title: &str, mtime: u64, hash: &str, frontmatter_json: Option<&str>, ) -> Result<i64>
pub fn get_note_metadata_by_path( &self, path: &str, ) -> Result<Option<NoteMetadata>>
pub fn insert_tag(&self, note_id: i64, tag: &str) -> Result<()>
pub fn insert_link( &self, src_note_id: i64, dst_text: &str, kind: &str, is_embed: bool, alias: Option<&str>, heading_ref: Option<&str>, block_ref: Option<&str>, ) -> Result<()>
pub fn insert_chunk_with_offset( &self, note_id: i64, heading_path: Option<&str>, text: &str, byte_offset: i32, byte_length: i32, ) -> Result<()>
pub fn clear_note_data(&self, note_id: i64) -> Result<()>
pub fn commit(self) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for DatabaseTransaction<'a>
impl<'a> !RefUnwindSafe for DatabaseTransaction<'a>
impl<'a> !Send for DatabaseTransaction<'a>
impl<'a> !Sync for DatabaseTransaction<'a>
impl<'a> Unpin for DatabaseTransaction<'a>
impl<'a> UnsafeUnpin for DatabaseTransaction<'a>
impl<'a> !UnwindSafe for DatabaseTransaction<'a>
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