I'm working with a visual fox pro database (.dbf file) and I'm using the dbf python module. Heres an example:
myDb = VfpTable('table.dbf');
Now I can exclude deleted items with this by doing the following:
myDb._use_deleted = None;
My question(s) is/are is there an easier way to do this? Maybe a function? I hate accessing "private" variables. Also, without setting this property, how can I determine if a row has been deleted? They are still technically in the database so is there a flag? A hidden column? Maybe someone with more knowledge of this python module or Visual Fox Pro has some ideas.
Stop me if you've heard this one before: """I have a DBF reading module (pydbfrw) which I've been meaning to release "one of these days"."""
It was easier to add the functionality that you want than to puzzle through the source code of the
dbf
module:Using the dbf module referenced above what you want is:
and for individual records:
To physically remove the records from the table:
disclosure: I am the author.