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

mod current;
mod error;
mod partial;

pub use current::Version;
pub use error::VersionError;
pub use partial::PartialVersion;