pub struct SeedScript {
pub reset: Vec<String>,
pub inserts: Vec<String>,
pub rows: Vec<(String, usize)>,
}Expand description
The SQL a seed runs, with every value written inline.
Fields§
§reset: Vec<String>DELETEs (and resets) that empty the tables, children first.
inserts: Vec<String>The INSERTs (and PostgreSQL sequence updates), parents first.
rows: Vec<(String, usize)>Rows inserted per table, in insert order.
Implementations§
Trait Implementations§
Source§impl Debug for SeedScript
impl Debug for SeedScript
Auto Trait Implementations§
impl Freeze for SeedScript
impl RefUnwindSafe for SeedScript
impl Send for SeedScript
impl Sync for SeedScript
impl Unpin for SeedScript
impl UnsafeUnpin for SeedScript
impl UnwindSafe for SeedScript
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