pgdo/
version.rs

1//! Parse PostgreSQL version numbers.
2//!
3//! ```rust
4//! # use pgdo::version::Version;
5//! assert_eq!(Ok(Version::Pre10(9, 6, 17)), "9.6.17".parse());
6//! assert_eq!(Ok(Version::Post10(14, 6)), "14.6".parse());
7//! ```
8//!
9//! See the [PostgreSQL "Versioning Policy" page][versioning] for information on
10//! PostgreSQL's versioning scheme.
11//!
12//! [versioning]: https://www.postgresql.org/support/versioning/
13
14mod current;
15mod error;
16mod partial;
17
18pub use current::Version;
19pub use error::VersionError;
20pub use partial::PartialVersion;