tideway 0.7.17

A batteries-included Rust web framework built on Axum for building SaaS applications quickly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![cfg(feature = "database-sqlx")]
#![allow(deprecated)]

use tideway::database::sqlx_pool::{SqlxConnectionWrapper, SqlxPool};
use tideway::{DatabaseConnection, DatabasePool};

#[test]
fn database_sqlx_feature_exposes_database_contracts() {
    fn assert_pool<T: DatabasePool>() {}
    fn assert_connection<T: DatabaseConnection>() {}

    assert_pool::<SqlxPool>();
    assert_connection::<SqlxConnectionWrapper>();
}