pub enum PgVersion {
Pg14,
Pg15,
Pg16,
Pg17,
Pg18,
}Expand description
Major Postgres versions supported by the v0.1 catalog reader.
Variants§
Implementations§
Source§impl PgVersion
impl PgVersion
Sourcepub fn detect(querier: &dyn CatalogQuerier) -> Result<Self, CatalogError>
pub fn detect(querier: &dyn CatalogQuerier) -> Result<Self, CatalogError>
Detect the major version from server_version_num.
Sourcepub fn from_server_version_num(n: i64) -> Result<Self, CatalogError>
pub fn from_server_version_num(n: i64) -> Result<Self, CatalogError>
Convert a server_version_num integer (e.g., 160000) into the major
version. Returns CatalogError::UnsupportedPgVersion for anything
outside the 14–18 range.
Trait Implementations§
impl Copy for PgVersion
impl Eq for PgVersion
impl StructuralPartialEq for PgVersion
Auto Trait Implementations§
impl Freeze for PgVersion
impl RefUnwindSafe for PgVersion
impl Send for PgVersion
impl Sync for PgVersion
impl Unpin for PgVersion
impl UnsafeUnpin for PgVersion
impl UnwindSafe for PgVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more