pub enum DumpFormat {
    Zip,
    Dump,
}
Expand description

The format for a database dump

Variants§

§

Zip

Output a zipfile containing the SQL dump in “plain” format, manifest, and filestore

Note that with this mode, the database is dumped to a Python NamedTemporaryFile first, then to the out stream - this means that the backup takes longer, and probably involves some filesystem writes.

Also note that the SQL format is “plain”; that is, it’s a text file containing SQL statements. This style of database dump is slightly less flexible when importing (e.g., you cannot choose to exclude some tables during import).

See the Postgres pg_dump docs for more info on “plain” dumps (-F option).

§

Dump

Output a .dump file containing the SQL dump in “custom” format

This style of database dump is more flexible on the import side (e.g., you can choose to exclude some tables from the import), but does not include the filestore.

See the Postgres pg_dump docs for more info on “custom” dumps (-F option).

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more