ormdantic-dialects 2.0.1

SQL dialect support for Ormdantic
Documentation
1
2
3
4
5
6
7
8
9
10
11
use ormdantic_core::IsolationLevel;

pub(crate) fn render_isolation_level(isolation_level: IsolationLevel) -> &'static str {
    match isolation_level {
        IsolationLevel::ReadUncommitted => "READ UNCOMMITTED",
        IsolationLevel::ReadCommitted => "READ COMMITTED",
        IsolationLevel::RepeatableRead => "REPEATABLE READ",
        IsolationLevel::Serializable => "SERIALIZABLE",
        IsolationLevel::Snapshot => "SNAPSHOT",
    }
}