From c0ec45000eda9df25f36bc020fd586e89eb9cd43 Mon Sep 17 00:00:00 2001 From: David McNeill Date: Wed, 11 Jan 2023 17:54:23 +1300 Subject: [PATCH] Update example dbf2sqlite Add support in the example for ignore-missing-memofile parameter, so missing fpt files won't hold up conversion. --- examples/dbf2sqlite | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/dbf2sqlite b/examples/dbf2sqlite index d8e090f..308728b 100755 --- a/examples/dbf2sqlite +++ b/examples/dbf2sqlite @@ -77,6 +77,13 @@ def parse_args(): default=None, help='character encoding in DBF file') + arg('-i', '--ignore-missing-memofile', + action='store', + dest='ignore_missing_memofile', + default=True, + help='If you dont have the memo file, then all memo field text will be none, balance of data still accessible.' + '(default is to include memo fields)') + arg('--char-decode-errors', action='store', dest='char_decode_errors', @@ -102,6 +109,7 @@ def main(): add_table(cursor, DBF(table_file, lowernames=True, encoding=args.encoding, + ignore_missing_memofile=args.ignore_missing_memofile, char_decode_errors=args.char_decode_errors)) except UnicodeDecodeError: traceback.print_exc()