sea_orm/schema/
mod.rs

1use crate::DbBackend;
2
3mod entity;
4#[cfg(feature = "serde_json")]
5mod json;
6
7/// This is a helper struct to convert [`EntityTrait`](crate::EntityTrait)
8/// into different [`sea_query`](crate::sea_query) statements.
9#[derive(Debug)]
10pub struct Schema {
11    backend: DbBackend,
12}
13
14impl Schema {
15    /// Create a helper for a specific database backend
16    pub fn new(backend: DbBackend) -> Self {
17        Self { backend }
18    }
19}