Struct rust_pgdatadiff::diff::diff_payload::DiffPayload
source · pub struct DiffPayload { /* private fields */ }
Expand description
Represents a payload for performing database diffs.
Implementations§
source§impl DiffPayload
impl DiffPayload
sourcepub fn new(
first_db: impl Into<String>,
second_db: impl Into<String>,
only_tables: bool,
only_sequences: bool,
only_count: bool,
chunk_size: i64,
max_connections: i64,
include_tables: Vec<impl Into<String>>,
exclude_tables: Vec<impl Into<String>>,
schema_name: impl Into<String>
) -> Self
pub fn new( first_db: impl Into<String>, second_db: impl Into<String>, only_tables: bool, only_sequences: bool, only_count: bool, chunk_size: i64, max_connections: i64, include_tables: Vec<impl Into<String>>, exclude_tables: Vec<impl Into<String>>, schema_name: impl Into<String> ) -> Self
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.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.
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 max_connections(&self) -> u32
pub fn included_tables(&self) -> &Vec<String>
pub fn excluded_tables(&self) -> &Vec<String>
pub fn schema_name(&self) -> &str
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