# deadpool-apexbase

Dead simple async pool for [ApexBase](https://github.com/birchkwok/ApexBase) embedded database.

## Example

```rust,ignore
use deadpool_apexbase::{Config, Runtime};

let cfg = Config::new("/tmp/apexbase_db");
let pool = cfg.create_pool(Runtime::Tokio1).unwrap();
let db = pool.get().await.unwrap();

let count = db
    .interact(|apexdb| {
        let table = apexdb.create_table("users").unwrap();
        // ...
        table.count().unwrap()
    })
    .await
    .unwrap();
```

## License

Licensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or [MIT license](LICENSE-MIT) at your option.
