Crate orientdb_client[][src]

Expand description

Experimental Rust client for OrientDB. The driver supports sync and async.

You can use orientdb-client this lines in your Cargo.toml

[dependencies]
orientdb-client = "*"

Here it is an usage example:


use orientdb_client::{OrientDB};

fn main() -> Result<(), Box<std::error::Error>> {
   let client = OrientDB::connect(("localhost",2424))?;

   let session = client.session("demodb","admin","admin")?;

   let results : Vec<_> = session.query("select from V where id = :param").named(&[("param", &1)]).run()?.collect();


   println!("{:?}", results);

   Ok(())
}

Re-exports

pub use common::types::error::OrientError;
pub use common::ConnectionOptions;
pub use sync::client::OrientDB;
pub use sync::session::OSession;
pub use sync::session::SessionPool;
pub use common::DatabaseType;

Modules

common
sync
types

Type Definitions

OrientResult