Skip to content

DumpFormat

Bases: Enum

Source code in pum/dumper.py
class DumpFormat(Enum):
    CUSTOM = "custom"
    PLAIN = "plain"

    def to_pg_dump_flag(self):
        if self == DumpFormat.CUSTOM:
            return "-Fc"
        elif self == DumpFormat.PLAIN:
            return "-Fp"
        raise ValueError(f"Unknown dump format: {self}")