rorm-db 0.7.0

The inner database abstraction layer from rorm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::transaction::Transaction;
use crate::Error;

use super::{no_sqlx, NotInstantiable};

pub(crate) type Impl = NotInstantiable;

/// Implementation of [Transaction::commit]
pub(crate) async fn commit(transaction: Transaction<'_>) -> Result<(), Error> {
    // "Read" tx at least once
    let _ = transaction.tx;
    no_sqlx();
}

/// Implementation of [Transaction::rollback]
pub(crate) async fn rollback(_transaction: Transaction<'_>) -> Result<(), Error> {
    no_sqlx();
}