use database::Database;
use pyo3::prelude::*;
use row::Row;
pub mod bufferpool;
pub mod capture;
pub mod column;
pub mod constants;
pub mod database;
pub mod filewriter;
pub mod index;
pub mod metadata;
pub mod page;
pub mod queue;
pub mod row;
#[inline]
fn init_logging() {
let _ = env_logger::try_init();
}
#[pymodule]
fn kronicler(m: &Bound<'_, PyModule>) -> PyResult<()> {
init_logging();
m.add_class::<Database>()?;
m.add_class::<Row>()?;
m.add_function(wrap_pyfunction!(database::database_init, m)?)?;
Ok(())
}