easy_sqlx_core/sql/dialects/schema/mod.rs
1// #[cfg(feature = "mysql")]
2pub(crate) mod mysql;
3// #[cfg(feature = "postgres")]
4pub(crate) mod postgres;
5
6// #[cfg(feature = "mysql")]
7// mod mysql;
8// #[cfg(feature = "postgres")]
9// mod postgres;
10
11pub mod schema;
12
13use super::context::Context;
14
15#[cfg(feature = "postgres")]
16pub fn new(default_sechma: String) -> impl schema::Schema {
17 postgres::schema::PgSchema::new(Context::new(default_sechma))
18}
19
20// #[cfg(not(feature = "postgres"))]