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

Exclusively opening a file #11

Open
fcdimitr opened this issue Jan 23, 2021 · 2 comments
Open

Exclusively opening a file #11

fcdimitr opened this issue Jan 23, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@fcdimitr
Copy link

When working through the DBASE environment, there is an option to open a file "exclusively", so that other applications wait on the released lock, before altering the table content.

Is there an option to get/check/release this lock through this module? Do you have any idea on how we would approach such an issue? Perhaps I could contribute such a functionality, if you have any tips/ideas on how to pursue this problem.

Thanks for an amazing package!

@Kodiologist
Copy link

I'm just some guy passing through with little knowledge of the format, but perhaps dBase uses the operating system's native lock functions. You can use these in Python with the standard module fcntl.

@fcdimitr
Copy link
Author

Following up on this, is there any way to lock a record in the file? We have a legacy server with DBF files used by multiple programs, and we are trying to migrate each one. It would be great if I could change each one to Python codes, where I can still update the old files without interfering with other programs.

Any ideas? Thank you!

@ethanfurman ethanfurman added the enhancement New feature or request label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants