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]

[src]

Creates a new version information

[src]

Gets 1st part of Oracle version number

[src]

Gets 2nd part of Oracle version number

[src]

Gets 3rd part of Oracle version number

[src]

Gets 4th part of Oracle version number

[src]

Gets 5th part of Oracle version number

Trait Implementations

impl PartialEq for Version
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Version
[src]

impl PartialOrd for Version
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[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]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Display for Version
[src]

[src]

Formats the value using the given formatter. Read more