1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Build `CREATE TABLE`, `CREATE TYPE`, and related schema statements from
//! [`Entity`](crate::EntityTrait) definitions.
//!
//! Use [`Schema::new`] with a [`DbBackend`] to get a helper, then call
//! [`Schema::builder`] for a fluent [`SchemaBuilder`] that emits `sea_query`
//! statements you can execute on a connection. With the `entity-registry`
//! and `schema-sync` feature flags enabled, `db.get_schema_registry(prefix)`
//! syncs all registered entities at once.
use crateDbBackend;
pub use *;
use *;
/// Helper that converts an [`EntityTrait`](crate::EntityTrait) into different
/// [`sea_query`] statements (CREATE TABLE / CREATE TYPE / etc) for a given
/// [`DbBackend`].