dialtone_sqlx 0.1.0

Dialtone SQLx Back-End
Documentation
1
2
3
4
5
6
7
8
9
10
11
use dialtone_sqlx::control::user::check_name_availability::check_user_name_availability;
use dialtone_test_util::test_pg;

#[tokio::test]
async fn check_user_name_availability_test() {
    test_pg::test_pg(move |pool| async move {
        let action = check_user_name_availability(&pool, "test", "example.com").await;
        assert!(action.is_ok())
    })
    .await;
}