crate::ix!();
pub struct BerkeleyBatch {
base: DatabaseBatch,
pdb: Rc<RefCell<libdb::Db>>,
str_file: String,
active_txn: Rc<RefCell<libdb::Transaction>>,
cursor: Rc<RefCell<libdb::Cursor>>,
read_only: bool,
flush_on_close: bool,
env: Rc<RefCell<BerkeleyEnvironment>>,
database: Rc<RefCell<BerkeleyDatabase>>,
}
impl Drop for BerkeleyBatch {
fn drop(&mut self) {
todo!();
}
}
pub mod berkeley_batch {
use super::*;
pub struct SafeDbt {
dbt: libdb::DBT,
}
impl Drop for SafeDbt {
fn drop(&mut self) {
todo!();
}
}
impl Into<libdb::DBT> for SafeDbt {
#[inline] fn into(self) -> libdb::DBT {
todo!();
}
}
impl Default for SafeDbt {
fn default() -> Self {
todo!();
}
}
impl SafeDbt {
pub fn new(
data: *mut c_void,
size: usize) -> Self {
todo!();
}
pub fn get_data(&self) {
todo!();
}
pub fn get_size(&self) -> u32 {
todo!();
}
}
}
impl BerkeleyBatch {
pub fn close(&mut self) {
todo!();
}
pub fn start_cursor(&mut self) -> bool {
todo!();
}
pub fn read_at_cursor(&mut self,
ss_key: &mut DataStream,
ss_value: &mut DataStream,
complete: &mut bool) -> bool {
todo!();
}
pub fn close_cursor(&mut self) {
todo!();
}
pub fn txn_begin(&mut self) -> bool {
todo!();
}
pub fn txn_commit(&mut self) -> bool {
todo!();
}
pub fn txn_abort(&mut self) -> bool {
todo!();
}
pub fn read_key(&mut self,
key: DataStream,
value: &mut DataStream) -> bool {
todo!();
}
pub fn write_key(&mut self,
key: DataStream,
value: DataStream,
overwrite: Option<bool>) -> bool {
let overwrite: bool = overwrite.unwrap_or(true);
todo!();
}
pub fn erase_key(&mut self, key: DataStream) -> bool {
todo!();
}
pub fn has_key(&mut self, key: DataStream) -> bool {
todo!();
}
pub fn new(
database: &mut BerkeleyDatabase,
read_only: bool,
flush_on_close_in: Option<bool>) -> Self {
let flush_on_close_in: bool =
flush_on_close_in.unwrap_or(true);
todo!();
}
pub fn flush(&mut self) {
todo!();
}
}