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

Add support for CDX index files #128

Closed
razvanphp opened this issue Jun 20, 2024 · 5 comments
Closed

Add support for CDX index files #128

razvanphp opened this issue Jun 20, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@razvanphp
Copy link

We are using this lib successfully to edit / insert into a DBF File Type: 0x30 (Visual FoxPro), windows-1252 encoding, that has a corresponding .CDX index file. We can insert into the DB, but we need to somehow update the index afterwards.

Is this already possible? If yes, please let me know how, otherwise, would it be possible to be implemented?

I would definitely help with contribution, but I'm not a go developer, ChatGPT is my friend for this small tool 🙂

Thank you!
R

@razvanphp razvanphp added the enhancement New feature or request label Jun 20, 2024
@Valentin-Kaiser
Copy link
Owner

So far it is not possible to read or write any index files (.idx, .cdx). The library allows to write tables, but is not really made for that. It was implemented mainly for reading.

It is possible to implement the reading and writing of index files. However, this is not trivial and time-consuming.
I'll find out more about the index files and their structure and work something out. If I actually start with the implementation, it will take a few weeks or months.

@razvanphp
Copy link
Author

For my use-case and hopefully others too, it's enough a way to trigger index rebuild / refresh, no need for reading and editing the index. Maybe that is easier to implement.

I can try to implement something and test with chatgpt if you can provide a boilerplate API that I should follow.

Thank you for taking the time for this!
R

@Valentin-Kaiser
Copy link
Owner

The library does not use a Visual Foxpro executable, which means that it is not possible to trigger reindexing.
Reindexing would have to be implemented in the library.

@razvanphp
Copy link
Author

Hmm, we are retrofiting an old app, maybe that one bundles the foxpro executable or a dll we can use for reindexing?

@Valentin-Kaiser
Copy link
Owner

I can't answer that for you. But I don't think it's that easy. Executing Visual Foxpro commands directly via the cli is not possible, so you can't run any indexing command.

@Valentin-Kaiser Valentin-Kaiser closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2024
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

2 participants