Struct multisql::SchemaDiff
source · [−]pub struct SchemaDiff {
pub table_name: Option<String>,
pub column_defs: Option<HashMap<Option<usize>, Option<Column>>>,
pub indexes: Option<HashMap<Option<usize>, Option<Index>>>,
}
Fields
table_name: Option<String>
column_defs: Option<HashMap<Option<usize>, Option<Column>>>
indexes: Option<HashMap<Option<usize>, Option<Index>>>
Implementations
sourceimpl SchemaDiff
impl SchemaDiff
pub fn new_rename(new_name: String) -> Self
pub fn new_add_column(new_column: Column) -> Self
pub fn new_remove_column(column_index: usize) -> Self
pub fn new_rename_column(
column_index: usize,
column: Column,
new_column_name: String
) -> Self
pub fn new_add_index(new_index: Index) -> Self
sourceimpl SchemaDiff
impl SchemaDiff
pub fn get_changes(&self) -> Vec<SchemaChange>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
sourceimpl Clone for SchemaDiff
impl Clone for SchemaDiff
sourcefn clone(&self) -> SchemaDiff
fn clone(&self) -> SchemaDiff
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for SchemaDiff
impl Default for SchemaDiff
sourcefn default() -> SchemaDiff
fn default() -> SchemaDiff
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SchemaDiff
impl Send for SchemaDiff
impl Sync for SchemaDiff
impl Unpin for SchemaDiff
impl UnwindSafe for SchemaDiff
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.