[−][src]Function lib::db::postgresql::client::restore
pub fn restore(input: RestoreInput) -> ResultDynError<String>
The cleaniest way to do clean restore is by doing below steps:
- Drop DB.
- Create DB.
- Run pg_restore.
Note that maybe this will change in the future, we would probably need to write our own version of pg_restore and pg_dump.