Constants¶
pgdumplib.constants
¶
Constants used in the reading and writing of a :command:pg_dump file.
There are additional undocumented constants, but they should not be of concern
unless you are hacking on the library itself.
K_VERSION_MAP = {((9, 0, 0), (10, 2)): (1, 12, 0), ((10, 3), (11, 99)): (1, 13, 0), ((12, 0), (15, 99)): (1, 14, 0), ((16, 0), (16, 99)): (1, 15, 0), ((17, 0), (99, 99)): (1, 16, 0)}
module-attribute
¶
Specifies the compression algorithm used
K_OFFSET_POS_NOT_SET = 1
module-attribute
¶
Specifies the entry has data but no offset
K_OFFSET_POS_SET = 2
module-attribute
¶
Specifies the entry has data and an offset
K_OFFSET_NO_DATA = 3
module-attribute
¶
Specifies the entry has no data
MIN_VER = (1, 12, 0)
module-attribute
¶
The minumum supported version of pg_dump files ot support
MAX_VER = (1, 16, 0)
module-attribute
¶
The maximum supported version of pg_dump files ot support
SECTION_NONE = 'None'
module-attribute
¶
Non-specific section for an entry in a dump's table of contents
SECTION_PRE_DATA = 'Pre-Data'
module-attribute
¶
Pre-data section for an entry in a dump's table of contents
SECTION_DATA = 'DATA'
module-attribute
¶
Data section for an entry in a dump's table of contents
SECTION_POST_DATA = 'Post-Data'
module-attribute
¶
Post-data section for an entry in a dump's table of contents