1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
pub mod protocol;
pub mod types;

pub use crate::common::types::error::OrientCommonError;

#[derive(Debug)]
pub enum DatabaseType {
    Memory,
    PLocal,
}

impl DatabaseType {
    pub fn as_str(&self) -> &str {
        match self {
            DatabaseType::Memory => "memory",
            DatabaseType::PLocal => "plocal",
        }
    }
}

pub type OrientCommonResult<T> = Result<T, OrientCommonError>;