Package creation is performed at the operation level and passed through as an argument to Delta::generate
Package creation from a connection string now returns an Option so that None can be returned when a database does not exist.
Pulled out changeset generation into a trait called Comparable. I'm not incredibly happy with that name and am open to suggestions for change. Comparable returns a PsqlpackResult so that errors can be handled (i.e. as per my plan for #10). Originally, I had this trait returning a Option<Vec<ChangeInstruction<'a>>> (quite a mouthful!) however I've now adjusted it so that it can modify the vector directly (i.e. as &mut changeset).
Primary changes are:
operation
level and passed through as an argument toDelta::generate
Option
so thatNone
can be returned when a database does not exist.trait
calledComparable
. I'm not incredibly happy with that name and am open to suggestions for change.Comparable
returns aPsqlpackResult
so that errors can be handled (i.e. as per my plan for #10). Originally, I had this trait returning aOption<Vec<ChangeInstruction<'a>>>
(quite a mouthful!) however I've now adjusted it so that it can modify the vector directly (i.e. as&mut changeset
).