#![allow(unused_variables)]
use daoxide::container::{ContainerOpen, flags::CONT_OPEN_RW};
use daoxide::pool::{PoolBuilder, flags::POOL_CONNECT_NONE};
fn main() -> daoxide::Result<()> {
let runtime = daoxide::runtime::DaosRuntime::new()?;
let pool = PoolBuilder::new()
.label("mypool")
.system("daos_server")
.flags(POOL_CONNECT_NONE)
.build()?;
let container = pool.create_container("testcontainer")?;
let info = container.query()?;
println!("Container UUID: {:?}", info.uuid);
let start_oid = container.alloc_oids(5)?;
println!("Allocated OIDs starting from: {}", start_oid);
let container2 = pool.open_container("testcontainer", ContainerOpen::ByLabel, CONT_OPEN_RW)?;
println!("Opened container2 successfully");
println!("Runtime: {:?}", runtime);
Ok(())
}