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;
100
100
#[ cfg( any( feature = "fdb-5_1" , feature = "fdb-5_2" , feature = "fdb-6_0" ) ) ]
101
101
pub mod cluster;
102
102
mod database;
103
+ mod directory;
103
104
mod error;
104
105
pub mod future;
105
106
mod keyselector;
@@ -117,6 +118,7 @@ pub use crate::error::FdbError;
117
118
pub use crate :: error:: FdbResult ;
118
119
pub use crate :: keyselector:: * ;
119
120
pub use crate :: transaction:: * ;
121
+ pub use crate :: directory:: * ;
120
122
121
123
/// Initialize the FoundationDB Client API, this can only be called once per process.
122
124
///
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)
6
6
bindingtester=" ${fdb_rs_dir:? } /$1 "
7
7
case $( uname) in
8
8
Darwin)
9
- brew install mono
9
+ # brew install mono
10
10
;;
11
11
Linux)
12
12
sudo apt update
22
22
cd ${fdb_builddir:? }
23
23
24
24
# # 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
26
26
cd foundationdb
27
27
git checkout release-6.1
28
28
You can’t perform that action at this time.
0 commit comments