Struct oracle::Version
[−]
[src]
pub struct Version { /* fields omitted */ }
Oracle version information
Examples
let conn = oracle::Connection::new("scott", "tiger", "").unwrap(); let client_version = oracle::client_version().unwrap(); let (server_version, _) = conn.server_version().unwrap(); 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);
Methods
impl Version
[src]
fn new(
major: i32,
minor: i32,
update: i32,
patch: i32,
port_update: i32
) -> Version
[src]
major: i32,
minor: i32,
update: i32,
patch: i32,
port_update: i32
) -> Version
Creates a new version information
fn major(&self) -> i32
[src]
Gets 1st part of Oracle version number
fn minor(&self) -> i32
[src]
Gets 2nd part of Oracle version number
fn update(&self) -> i32
[src]
Gets 3rd part of Oracle version number
fn patch(&self) -> i32
[src]
Gets 4th part of Oracle version number
fn port_update(&self) -> i32
[src]
Gets 5th part of Oracle version number
Trait Implementations
impl PartialEq for Version
[src]
fn eq(&self, __arg_0: &Version) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Version) -> bool
[src]
This method tests for !=
.
impl Eq for Version
[src]
impl PartialOrd for Version
[src]
fn partial_cmp(&self, __arg_0: &Version) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Version) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Version) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Version) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Version) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Version
[src]
fn cmp(&self, __arg_0: &Version) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more