Struct sqlx_ledger::journal::Journals
source · pub struct Journals { /* private fields */ }
Expand description
Repository for working with Journal
entities.
Implementations§
source§impl Journals
impl Journals
pub fn new(pool: &Pool<Postgres>) -> Self
pub async fn create( &self, new_journal: NewJournal ) -> Result<JournalId, SqlxLedgerError>
pub async fn create_in_tx<'a>( &self, tx: &mut Transaction<'a, Postgres>, new_journal: NewJournal ) -> Result<JournalId, SqlxLedgerError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Journals
impl Send for Journals
impl Sync for Journals
impl Unpin for Journals
impl !UnwindSafe for Journals
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