(db: &C)
| 439 | } |
| 440 | |
| 441 | async fn query_tables<C>(db: &C) -> SelectStatement |
| 442 | where |
| 443 | C: ConnectionTrait, |
| 444 | { |
| 445 | match db.get_database_backend() { |
| 446 | #[cfg(feature = "sqlx-mysql")] |
| 447 | DbBackend::MySql => sea_schema::mysql::MySql.query_tables(), |
| 448 | #[cfg(feature = "sqlx-postgres")] |
| 449 | DbBackend::Postgres => sea_schema::postgres::Postgres.query_tables(), |
| 450 | #[cfg(feature = "sqlx-sqlite")] |
| 451 | DbBackend::Sqlite => sea_schema::sqlite::Sqlite.query_tables(), |
| 452 | #[allow(unreachable_patterns)] |
| 453 | other => panic!("{other:?} feature is off"), |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | fn get_current_schema<C>(db: &C) -> SimpleExpr |
| 458 | where |
no test coverage detected