Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vesnikos opened this issue Sep 13, 2017 · 5 comments
Open

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

vesnikos opened this issue Sep 13, 2017 · 5 comments

Comments

@vesnikos
Copy link

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
Copy link
Owner

olemb commented Sep 14, 2017

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

@vesnikos
Copy link
Author

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

@olemb
Copy link
Owner

olemb commented Sep 14, 2017

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
Copy link
Author

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
Copy link
Owner

olemb commented Dec 21, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants