MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / query_tables

Function query_tables

sea-orm-migration/src/migrator.rs:441–455  ·  view source on GitHub ↗
(db: &C)

Source from the content-addressed store, hash-verified

439}
440
441async fn query_tables<C>(db: &C) -> SelectStatement
442where
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
457fn get_current_schema<C>(db: &C) -> SimpleExpr
458where

Callers 1

exec_freshFunction · 0.85

Calls 1

get_database_backendMethod · 0.45

Tested by

no test coverage detected