olemb / dbfread

Read DBF Files with Python
MIT License
224 stars 91 forks source link

Docs are not clear in the accession order of the data #22

Open vesnikos opened 7 years ago

vesnikos commented 7 years ago

it is not clear when you do

for row in DBF('xxx.dbf'): ......

If the rows are accessed/read in a sorted order or in a random order

olemb commented 7 years ago

The rows are read in the order they appear in the file so they will not be sorted in any way.

vesnikos commented 7 years ago

That's interesting, so if I want to access the rowid, how would I be able to do that?

olemb commented 7 years ago

There's no direct way to do it. dbfread is designed for getting all of the data out of a file for processing somewhere else so there's no way to get a single record by row ID.

vesnikos commented 7 years ago

Do you think you could update the docs to be a little more clear on the subject? I figured that would be the case, as it wasn't specifically saying anything about it, but I didn't see anything in the docs to confirm it

olemb commented 3 years ago

That's a good point. I will keep this issue open until the docs have been updated.