diff --git a/src/lib.rs b/src/lib.rs index 0087c3bb..f3b0a17d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; diff --git a/src/transaction.rs b/src/transaction.rs new file mode 100644 index 00000000..fcfccd38 --- /dev/null +++ b/src/transaction.rs @@ -0,0 +1,2 @@ +#[derive(Default)] +pub struct Transaction {} diff --git a/tests/transaction_test.rs b/tests/transaction_test.rs new file mode 100644 index 00000000..c871021a --- /dev/null +++ b/tests/transaction_test.rs @@ -0,0 +1,6 @@ +extern crate agdb; + +#[test] +fn transaction_is_public_type() { + let _transaction = agdb::Transaction::default(); +}