pub struct DiffPayload { /* private fields */ }
Expand description
Represents a payload for performing database diffs.
Implementations§
Source§impl DiffPayload
impl DiffPayload
pub fn first_db(&self) -> &str
pub fn second_db(&self) -> &str
pub fn only_tables(&self) -> bool
pub fn only_sequences(&self) -> bool
pub fn only_count(&self) -> bool
pub fn chunk_size(&self) -> i64
pub fn start_position(&self) -> i64
pub fn max_connections(&self) -> u32
pub fn included_tables(&self) -> &Vec<String>
pub fn excluded_tables(&self) -> &Vec<String>
pub fn schema_name(&self) -> &str
pub fn accept_invalid_certs_first_db(&self) -> bool
pub fn accept_invalid_certs_second_db(&self) -> bool
pub fn any_accept_invalid_certs(&self) -> bool
Sourcepub fn builder<I1, I2, I3, I4, I5>() -> DiffPayloadBuilder<I1, I2, I3, I4, I5>
pub fn builder<I1, I2, I3, I4, I5>() -> DiffPayloadBuilder<I1, I2, I3, I4, I5>
Creates a new DiffPayload
instance.
§Arguments
first_db
- The name of the first database.second_db
- The name of the second database.only_data
- A flag indicating whether to compare only data.only_sequences
- A flag indicating whether to compare only sequences.count_only
- A flag indicating whether to count differences only.chunk_size
- The chunk size for processing large tables.start_position
- The start position for the comparison.max_connections
- The maximum number of database connections to use.include_tables
- A list of tables to include in the comparison.exclude_tables
- A list of tables to exclude in the comparison.schema_name
- The name of the schema to compare.
§Returns
A new DiffPayload
instance.
Auto Trait Implementations§
impl Freeze for DiffPayload
impl RefUnwindSafe for DiffPayload
impl Send for DiffPayload
impl Sync for DiffPayload
impl Unpin for DiffPayload
impl UnwindSafe for DiffPayload
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