Skip to content

Commit

Permalink
[query] Add QueryError #44 (#45)
Browse files Browse the repository at this point in the history
* Create query_error_test.rs

* Create query_error.rs

* Update lib.rs
  • Loading branch information
michaelvlach authored Aug 20, 2022
1 parent 8492bde commit b48845d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
mod db;
mod query;
mod query_error;
mod query_result;
mod transaction;

pub use db::Db;
pub use query::Query;
pub use query_error::QueryError;
pub use query_result::QueryResult;
pub use transaction::Transaction;
2 changes: 2 additions & 0 deletions src/query_error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#[derive(Default)]
pub struct QueryError {}
6 changes: 6 additions & 0 deletions tests/query_error_test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extern crate agdb;

#[test]
fn query_error_is_public_type() {
let _error = agdb::QueryError::default();
}

0 comments on commit b48845d

Please sign in to comment.