yang_base/database/
mod.rs1#[cfg(test)]
31mod __tests__;
32#[cfg(feature = "postgres")]
33mod adoption;
34#[cfg(any(feature = "mysql", feature = "postgres"))]
35mod backend;
36#[cfg(any(feature = "mysql", feature = "postgres"))]
37mod datasource;
38#[cfg(any(feature = "mysql", feature = "postgres"))]
39mod initializer;
40#[cfg(any(feature = "mysql", feature = "postgres"))]
41mod schema_sync;
42
43#[cfg(feature = "postgres")]
44pub use adoption::{
45 describe_postgres_schema, PgAdoptionColumn, PgAdoptionIndex, PgAdoptionReport, PgAdoptionTable,
46};
47#[cfg(any(feature = "mysql", feature = "postgres"))]
48pub(crate) use backend::AnyTransactionKind;
49#[cfg(any(feature = "mysql", feature = "postgres"))]
50pub use backend::{AnyDatabase, AnyPool, AnyTransaction, PoolHandle};
51#[cfg(any(feature = "mysql", feature = "postgres"))]
52pub use datasource::{Datasource, DatasourceHealth, DatasourcePoolStatus, DatasourceRegistry};
53#[cfg(any(feature = "mysql", feature = "postgres"))]
54pub use initializer::{
55 preflight_table_definitions_grouped, preflight_table_definitions_grouped_outcomes,
56 sync_table_definitions_grouped, sync_table_definitions_grouped_outcomes, DatabaseInitializer,
57};
58#[cfg(any(feature = "mysql", feature = "postgres"))]
59pub use schema_sync::{
60 SchemaBindingChange, SchemaBindingMode, SchemaDataViolation, SchemaPreflightReport,
61 SchemaSyncChange, SchemaSyncChangeKind, SchemaSyncReport,
62};