mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-25 09:49:44 +08:00
Add hexadecimal binary output conversion option
This commit adds another binary output conversion option to convert binary blobs into hexadecimal notation, similar to the output of the following command: xxd -p binaryfile.bin | tr -d '\n' (In other words, a single line string of hexadecimal characters representing a binary blob) When exporting SQL INSERT statements for SQLite and PostgreSQL and when the hexadecimal notation is specified with 'mdb-export -b hex ...', special consideration is given to ensure that binary blobs are safely written to the SQLite or PostgreSQL database. Signed-off-by: David Hicks <david@hicks.id.au>
This commit is contained in:
@@ -180,7 +180,8 @@ enum {
|
||||
enum {
|
||||
MDB_BINEXPORT_STRIP,
|
||||
MDB_BINEXPORT_RAW,
|
||||
MDB_BINEXPORT_OCTAL
|
||||
MDB_BINEXPORT_OCTAL,
|
||||
MDB_BINEXPORT_HEXADECIMAL
|
||||
};
|
||||
|
||||
#define IS_JET4(mdb) (mdb->f->jet_version==MDB_VER_JET4) /* obsolete */
|
||||
|
||||
Reference in New Issue
Block a user