-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create transaction_test.rs * Create transaction.rs * Update lib.rs
- Loading branch information
1 parent
64413bf
commit 84a435a
Showing
3 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#[derive(Default)] | ||
pub struct Transaction {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |