-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace configuration with a new version, identical to v2. (#295)
### What This introduces configuration version 3, and removes versions 1 and 2. This is most definitely a breaking change, and we're not done. Future changes will tear this apart and rebuild it, but I wanted to make this part easier to review. ### How I did this in a few steps to make sure I didn't break anything. 1. I pulled out some of the lower-level configuration types to their own files. 2. Next, I copied the remaining shared code from v1 to v2 so there were no cross-dependencies. 3. Then I copied v2 to v3, and modified all the tests to use a v3 config (identical to v2 except the `"version"` field). 4. Finally, I removed v1 and v2.
- Loading branch information
1 parent
6ee371e
commit 121ec33
Showing
57 changed files
with
2,199 additions
and
50,810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
199 changes: 0 additions & 199 deletions
199
crates/configuration/src/custom_trait_implementations.rs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
mod configuration; | ||
mod custom_trait_implementations; | ||
pub mod version1; | ||
pub mod version2; | ||
mod values; | ||
|
||
pub mod version3; | ||
|
||
pub use configuration::{ | ||
as_runtime_configuration, configure, set_connection_uri, validate_raw_configuration, | ||
Configuration, RawConfiguration, RuntimeConfiguration, | ||
}; | ||
pub use version2::{ | ||
occurring_scalar_types, ConnectionUri, IsolationLevel, PoolSettings, ResolvedSecret, | ||
}; | ||
pub use values::{ConnectionUri, IsolationLevel, PoolSettings, ResolvedSecret}; | ||
pub use version3::occurring_scalar_types; |
Oops, something went wrong.