Restore 0.9.0 API backward compatibility of mdb_print_col and MDB_BINEXPORT_*

Other programs (e.g. gmdb2) use mdb_print_col, so restore the old enum
names and values. MDB_EXPORT_ESCAPE_INVISIBLE can be OR'ed into the
last argument to enable C-style escaping of text fields.
This commit is contained in:
Evan Miller
2020-12-30 10:28:49 -05:00
parent d51a37a760
commit 24a7fdab78
3 changed files with 23 additions and 19 deletions

View File

@@ -190,10 +190,12 @@ enum {
/* csv export binary options */
enum {
MDB_EXPORT_BINARY_STRIP = (1 << 0),
MDB_EXPORT_BINARY_RAW = (1 << 1),
MDB_EXPORT_BINARY_OCTAL = (1 << 2),
MDB_EXPORT_BINARY_HEXADECIMAL = (1 << 3),
MDB_BINEXPORT_STRIP,
MDB_BINEXPORT_RAW,
MDB_BINEXPORT_OCTAL,
MDB_BINEXPORT_HEXADECIMAL,
/* Flags that can be OR'ed into the above when calling mdb_print_col */
MDB_EXPORT_ESCAPE_CONTROL_CHARS = (1 << 4)
};