-
Notifications
You must be signed in to change notification settings - Fork 268
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
Report limited indexes in MetaIndexes() #208
base: master
Are you sure you want to change the base?
Conversation
… 16 chars are indexed in column "name"
A more BC save approach would be to reported the limits of indexes under a different key, eg.
What do you think? |
…name as key and length as value
I think this is a better approach. As a side note, I don't mind if you make changes to whitespace, but if you do please commit them separately separately from actual fixes, it makes code review easier. Thanks for your understanding. |
No problem, should I fix that in this pull request and open an extra fix-trailing-whitespace pull request? Anyway I'm happy to discuss and fix my pull requests one by one, so you can merge them, when you think they are ready. |
If you don't mind fixing it here, that would be great. It does not necessarily have to be a separate PR, but at least a distinct commit; note that the PR approach may create dependency issues / merge conflicts. Anyway, do whatever is more convenient for you. |
In general design terms, I would prefer that:
So instead of:
We define it like this, with the column-attributes and index-attributes key always being defined, even as empty arrays.
The column and index attributes are then easily isolated on a data provider basis, and do not have to be 'portable' options Therefore we do not have to provide the ability to parse and understand the values in ADOdb, we can simply report them de-facto Because the attributes are data-provider specific In this scenario, contributors can easily offer code snippets to identify provider specific index attributes, and we can add them without having to re-code the core methods each time |
@ralfbecker what is the status on this ? |
eg. "name(16)" instead of just "name", if only first 16 chars are indexed in column "name".
I need this information to create full backups including schema data.
As this might other use-cases of MataIndexes not expecting the limit reported this way, I could alternatively use an additional array-key instead of changing content returned in value of "columns".
Ralf