claviron-php-embed 0.2.0-alpha.20

Managed in-process PHP execution, application hosting, and native extensions for Claviron
1
2
3
4
5
6
7
8
9
10
use super::transaction_statement;

#[test]
fn builds_postgres_transaction_settings_without_interpolation() {
    assert_eq!(
        transaction_statement(Some("serializable"), Some(true)).unwrap(),
        "BEGIN ISOLATION LEVEL SERIALIZABLE READ ONLY"
    );
    assert!(transaction_statement(Some("snapshot"), None).is_err());
}