pub fn new_default_process_with_migrations(
migrate: impl Fn(&str) -> Result<(), Box<dyn Error + Send + Sync>>,
) -> TmpPostgrustResult<ProcessGuard>Expand description
Create a new default instance, initializing the DEFAULT_POSTGRES_FACTORY if it
does not already exist. The function passed as the migrate parameters
will be run the first time the factory is initialised.
§Errors
Will return Err if postgres is not installed on system
§Panics
Will panic if a TmpPostgrustFactory::try_new returns an error the first time the function
is called.