sea_orm_migration::prelude::schema

Trait SchemaStatementBuilder

Source
pub trait SchemaStatementBuilder {
    // Required methods
    fn build<T>(&self, schema_builder: T) -> String
       where T: SchemaBuilder;
    fn build_any(&self, schema_builder: &dyn SchemaBuilder) -> String;

    // Provided method
    fn to_string<T>(&self, schema_builder: T) -> String
       where T: SchemaBuilder { ... }
}

Required Methods§

Source

fn build<T>(&self, schema_builder: T) -> String
where T: SchemaBuilder,

Build corresponding SQL statement for certain database backend and return SQL string

Source

fn build_any(&self, schema_builder: &dyn SchemaBuilder) -> String

Build corresponding SQL statement for certain database backend and return SQL string

Provided Methods§

Source

fn to_string<T>(&self, schema_builder: T) -> String
where T: SchemaBuilder,

Build corresponding SQL statement for certain database backend and return SQL string

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§