Skip to content

Commit

Permalink
#XD-623 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
penemue committed Nov 10, 2017
1 parent 7e98de1 commit 2a9ab28
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ Read more about [managing dependencies](https://github.com/JetBrains/xodus/wiki/
There are three different ways to deal with data, which results in three different API layers: [Environments](https://github.com/JetBrains/xodus/wiki/Environments), [Entity Stores](https://github.com/JetBrains/xodus/wiki/Entity-Stores) and [Virtual File Systems](https://github.com/JetBrains/xodus/wiki/Virtual-File-Systems).

### Environments

Add dependency on `org.jetbrains.xodus:xodus-environment:1.0.6`.

```java
final Environment env = Environments.newInstance("/home/me/.myAppData");
env.executeInTransaction(new TransactionalExecutable() {
Expand All @@ -55,6 +58,9 @@ env.executeInTransaction(new TransactionalExecutable() {
env.close();
```
### Entity Stores

Add dependency on `org.jetbrains.xodus:xodus-entity-store:1.0.6`.

```java
final PersistentEntityStore entityStore = PersistentEntityStores.newInstance("/home/me/.myAppData");
entityStore.executeInTransaction(new StoreTransactionalExecutable() {
Expand All @@ -67,6 +73,9 @@ entityStore.executeInTransaction(new StoreTransactionalExecutable() {
entityStore.close();
```
### Virtual File Systems

Add dependency on `org.jetbrains.xodus:xodus-vfs:1.0.6`.

```java
final Environment env = Environments.newInstance("/home/me/.myAppData");
final VirtualFileSystem vfs = new VirtualFileSystem(env);
Expand Down

0 comments on commit 2a9ab28

Please sign in to comment.