tmontaigu / dbase-rs

Rust library to read & write dBase files.
MIT License
29 stars 30 forks source link

Deleted records are not skipped #50

Closed theCapypara closed 1 year ago

theCapypara commented 1 year ago

According to the dbase spec, the first byte of each records values is either a space or an asterisk (*). If it is an asterisk, it is considered deleted.

See https://www.dbase.com/Knowledgebase/INT/db7_file_fmt.htm - Table Records:

The records follow the header in the table file. Data records are preceded by one byte, that is, a space (0x20) if the record is not deleted, an asterisk (0x2A) if the record is deleted.

At the moment this crate does not skip records marked as deleted this way.

tmontaigu commented 1 year ago

Should'nt be too hard to fix as parsing that field but ignoring it

haizz commented 1 year ago

+1 Looking forward to a new release with the fix! Thanks!