-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to get number of shards and replicas? #84
Comments
Hi @nook24, I don't believe this is actually possible in the current crate-dbal - we use the underlying DBAL library to get table details: Here, when getting table information, it only retrieves columns, indexes and foreign keys - no options. I'll look into extending to this, to see if we can retrieve the options of a table alongside the other information. |
Hi @nook24 - I've just released version 2.3.0 of the DBAL driver, which contains a feature to retrieve CrateDB specific table options when you retrieve tables from
I'll close this issue now, as I believe it is now resolved. But if you encounter further issues, please don't hesitate to reopen it. 🚀 Thanks again for reporting this! |
Works as expected, many thanks :) |
Hi everyone
this is a follow up to my last issue #75.
I'm still working on my automatically schema dump and update script.
This time I try to query the current amount of shards, partition options and number of replicas.
Unfortunately the result of
$table->getOptions()
is empty. Thats my code:My results
This is my schema: https://github.com/statusengine/worker/blob/master/lib/crateDB.sql
In the docs I only found how to set the table options - not how to read theme.
I'm on version crate-dbal 2.2.0 and CrateDB 4.1.2
The text was updated successfully, but these errors were encountered: