[][src]Struct oracle::Version

pub struct Version { /* fields omitted */ }

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);

Methods

impl Version[src]

pub fn new(
    major: i32,
    minor: i32,
    update: i32,
    patch: i32,
    port_update: i32
) -> Version
[src]

Creates a new version information

pub fn client() -> Result<Version>[src]

Returns the version of Oracle client in use.

Examples

let client_ver = Version::client()?;
println!("Oracle Client Version: {}", client_ver);

pub fn major(&self) -> i32[src]

Gets 1st part of Oracle version number

pub fn minor(&self) -> i32[src]

Gets 2nd part of Oracle version number

pub fn update(&self) -> i32[src]

Gets 3rd part of Oracle version number

pub fn patch(&self) -> i32[src]

Gets 4th part of Oracle version number

pub fn port_update(&self) -> i32[src]

Gets 5th part of Oracle version number

Trait Implementations

impl Eq for Version[src]

impl PartialOrd<Version> for Version[src]

impl PartialEq<Version> for Version[src]

impl Ord for Version[src]

impl Debug for Version[src]

impl Display for Version[src]

Auto Trait Implementations

impl Send for Version

impl Unpin for Version

impl Sync for Version

impl UnwindSafe for Version

impl RefUnwindSafe for Version

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err