File tree Expand file tree Collapse file tree 5 files changed +50
-2
lines changed Expand file tree Collapse file tree 5 files changed +50
-2
lines changed Original file line number Diff line number Diff line change 1+ use crate :: Transaction ;
2+
3+ pub struct Directory ;
4+
5+ // use crate::transactions::{Transaction};
6+
7+ impl Directory {
8+
9+ pub fn create_or_open ( trx : Transaction , path : Option < & str > , layer : Option < & [ u8 ] > ) -> bool {
10+ false
11+ }
12+
13+ }
Original file line number Diff line number Diff line change 1+ pub mod directory;
2+
3+ pub use directory:: * ;
4+
5+
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ pub mod api;
100100#[ cfg( any( feature = "fdb-5_1" , feature = "fdb-5_2" , feature = "fdb-6_0" ) ) ]
101101pub mod cluster;
102102mod database;
103+ mod directory;
103104mod error;
104105pub mod future;
105106mod keyselector;
@@ -117,6 +118,7 @@ pub use crate::error::FdbError;
117118pub use crate :: error:: FdbResult ;
118119pub use crate :: keyselector:: * ;
119120pub use crate :: transaction:: * ;
121+ pub use crate :: directory:: * ;
120122
121123/// Initialize the FoundationDB Client API, this can only be called once per process.
122124///
Original file line number Diff line number Diff line change 1+ // Copyright 2018 foundationdb-rs developers, https://github.com/Clikengo/foundationdb-rs/graphs/contributors
2+ //
3+ // Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
4+ // http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5+ // http://opensource.org/licenses/MIT>, at your option. This file may not be
6+ // copied, modified, or distributed except according to those terms.
7+
8+ use foundationdb:: * ;
9+ use futures:: future;
10+ use futures:: prelude:: * ;
11+
12+ mod common;
13+
14+ async fn test_create_or_open_async ( ) -> FdbResult < ( ) > {
15+ let db = common:: database ( ) . await ?;
16+ let trx = db. create_trx ( ) ?;
17+ let out = Directory :: create_or_open ( trx) ;
18+ assert ! ( out) ;
19+
20+ Ok ( ( ) )
21+ }
22+
23+ #[ test]
24+ fn test_create_or_open ( ) {
25+ common:: boot ( ) ;
26+ futures:: executor:: block_on ( test_create_or_open_async ( ) ) . expect ( "failed to run" ) ;
27+ }
28+
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ fdb_rs_dir=$(pwd)
66bindingtester=" ${fdb_rs_dir:? } /$1 "
77case $( uname) in
88 Darwin)
9- brew install mono
9+ # brew install mono
1010 ;;
1111 Linux)
1212 sudo apt update
2222 cd ${fdb_builddir:? }
2323
2424 # # Get foundationdb source
25- git clone --depth 1 https://github.com/apple/foundationdb.git -b release-6.1
25+ # git clone --depth 1 https://github.com/apple/foundationdb.git -b release-6.1
2626 cd foundationdb
2727 git checkout release-6.1
2828
You can’t perform that action at this time.
0 commit comments