Skip to content

Commit

Permalink
[query] Add Transaction #35 (#36)
Browse files Browse the repository at this point in the history
* Create transaction_test.rs

* Create transaction.rs

* Update lib.rs
  • Loading branch information
michaelvlach authored Aug 20, 2022
1 parent 64413bf commit 84a435a
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,7 +1,9 @@
mod db;
mod query;
mod query_result;
mod transaction;

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

#[test]
fn transaction_is_public_type() {
let _transaction = agdb::Transaction::default();
}

0 comments on commit 84a435a

Please sign in to comment.