pub struct SchemaBuilder { /* private fields */ }Expand description
Builder for constructing schema from DDL statements
Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
Sourcepub fn parse_create_table(&mut self, stmt: &str) -> Option<TableId>
pub fn parse_create_table(&mut self, stmt: &str) -> Option<TableId>
Parse a CREATE TABLE statement and add to schema
Sourcepub fn parse_alter_table(&mut self, stmt: &str) -> Option<TableId>
pub fn parse_alter_table(&mut self, stmt: &str) -> Option<TableId>
Parse an ALTER TABLE statement and update existing table
Sourcepub fn parse_create_index(&mut self, stmt: &str) -> Option<TableId>
pub fn parse_create_index(&mut self, stmt: &str) -> Option<TableId>
Parse a CREATE INDEX statement and add to the appropriate table
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 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more