Struct oracle::Version [−][src]
pub struct Version { /* fields omitted */ }
Expand description
Oracle version information
Examples
let conn = Connection::connect("scott", "tiger", "")?; let client_version = Version::client()?; let (server_version, _) = conn.server_version()?; println!("Client version:"); println!(" 1st part: {}", client_version.major()); println!(" 2nd part: {}", client_version.minor()); println!(" 3rd part: {}", client_version.update()); println!(" 4th part: {}", client_version.patch()); println!(" 5th part: {}", client_version.port_update()); println!("Server version: {}", server_version);
Implementations
Creates a new version information
Returns the version of Oracle client in use.
Examples
let client_ver = Version::client()?; println!("Oracle Client Version: {}", client_ver);
Gets 5th part of Oracle version number
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Version
impl UnwindSafe for Version