Closed vpetrovykh closed 2 months ago
I've implemented the same behavior in edgedb-rust.
When writing credentials.json, I've even implemented writing both branch and database, so it is backward compatible. This is useful if credentials.json is written by CLI on the new version and then old version of bindings reads it.
It is an error to specify
database
andbranch
at the same time on the same configuration level. It is OK to override previous configuration with eitherdatabase
orbranch
. It is OK for the credentials file to contain bothdatabase
andbranch
fields in order to facilitate transitioning from old style to the new style while maintaining backwards compatibility. The values must agree, though.