(db: &C)
| 455 | } |
| 456 | |
| 457 | fn get_current_schema<C>(db: &C) -> SimpleExpr |
| 458 | where |
| 459 | C: ConnectionTrait, |
| 460 | { |
| 461 | match db.get_database_backend() { |
| 462 | #[cfg(feature = "sqlx-mysql")] |
| 463 | DbBackend::MySql => sea_schema::mysql::MySql::get_current_schema(), |
| 464 | #[cfg(feature = "sqlx-postgres")] |
| 465 | DbBackend::Postgres => sea_schema::postgres::Postgres::get_current_schema(), |
| 466 | #[cfg(feature = "sqlx-sqlite")] |
| 467 | DbBackend::Sqlite => sea_schema::sqlite::Sqlite::get_current_schema(), |
| 468 | #[allow(unreachable_patterns)] |
| 469 | other => panic!("{other:?} feature is off"), |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | #[derive(DeriveIden)] |
| 474 | enum InformationSchema { |
no test coverage detected