aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.rs
Commit message (Collapse)AuthorAge
* Make methods borrow self mutably when appropriate.C. Morgan Hamill2015-03-24
| | | | | | | | | Use of raw pointers and FFI functions mean that the compiler won't force us to be correct in our usage of `&self` vs. `&mut self`. These functions make changes to the notmuch database, and we want the type system to ensure we can't simultaneously manipulate the database from different functions.
* Rename `NotmuchEnum` trait to `NotmuchType`.C. Morgan Hamill2015-03-24
| | | | Turns out to be useful outside of just enums.
* Add `Database::upgrade()` and related methods.C. Morgan Hamill2015-03-20
| | | | | Not so simple wrapper around notmuch API's `notmuch_database_upgrade()` function. Variants with and without a callback parameter are provided.
* Add `Databased::needs_upgrade()` method.C. Morgan Hamill2015-03-20
| | | | | Simple wrapper around notmuch API's `notmuch_database_needs_upgrade()` function.
* Add `Database::version()` method.C. Morgan Hamill2015-03-20
| | | | | Simple wrapper around notmuch API's `notmuch_database_get_version()` function.
* Add `Database::path()' method.C. Morgan Hamill2015-03-20
| | | | | Simple wrapper around notmuch API's `notmuch_database_get_path()` function.
* Add `Database::close()` method.C. Morgan Hamill2015-03-20
| | | | Simple wrapper around notmuch API's `notmuch_database_close()` function.
* Implement `Drop` for `Database`.C. Morgan Hamill2015-03-20
| | | | | Simple wrapper around notmuch API's `notmuch_database_destroy()` function.
* Add `Database::compact()` and related methods.C. Morgan Hamill2015-03-20
| | | | | Not so simple wrapper around notmuch API's `notmuch_database_compact()` function. Variants with and without a callback parameter are provided.
* Add `Database::open()` method.C. Morgan Hamill2015-03-20
| | | | Simple wrapper around notmuch API's `notmuch_database_open()` function.
* Add `Database::create()` method.C. Morgan Hamill2015-03-20
| | | | | Simple wrapper around notmuch API's `notmuch_database_create()` function.
* Add database module.C. Morgan Hamill2015-03-20
Add `database::Database`, `database::Version`, and `database::Mode` types.