pub struct SchemaBuilder { /* private fields */ }Expand description
SchemaBuilder accumulates intermediate state and produces an immutable Schema on build.
Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
pub fn new<S: Into<String>>(schema_name: Option<S>) -> Self
Sourcepub fn add_enum_type(self, enum_type: EnumType) -> Self
pub fn add_enum_type(self, enum_type: EnumType) -> Self
Add an enum type.
Sourcepub fn add_functions(self, functions: Vec<Function>) -> Self
pub fn add_functions(self, functions: Vec<Function>) -> Self
Add functions.
Sourcepub fn add_procedures(self, procedures: Vec<Procedure>) -> Self
pub fn add_procedures(self, procedures: Vec<Procedure>) -> Self
Add procedures.
Sourcepub fn add_other_sql(self, other_sql: OtherSql) -> Self
pub fn add_other_sql(self, other_sql: OtherSql) -> Self
Add an OtherSql.
pub fn case_sensitive_text(self, value: bool) -> Self
Trait Implementations§
Source§impl Debug for SchemaBuilder
impl Debug for SchemaBuilder
Source§impl Default for SchemaBuilder
impl Default for SchemaBuilder
Source§fn default() -> SchemaBuilder
fn default() -> SchemaBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaBuilder
impl RefUnwindSafe for SchemaBuilder
impl Send for SchemaBuilder
impl Sync for SchemaBuilder
impl Unpin for SchemaBuilder
impl UnsafeUnpin for SchemaBuilder
impl UnwindSafe for SchemaBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more