Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: JonasDevDE <[email protected]>
  • Loading branch information
JonasDevDE authored Apr 26, 2023
1 parent 7e72bb5 commit 6775752
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,55 @@
# IgDataStores

## Use with Gradle
```gradle
repositories {
maven { url 'https://jitpack.io' }
}
```

```gradle
dependencies {
implementation 'com.github.IgWebDE:IgDataStores:latest'
}
```


## Use with Maven
```xml
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
```

```xml
<dependency>
<groupId>com.github.IgWebDE</groupId>
<artifactId>IgDataStores</artifactId>
<version>latest</version>
</dependency>
```

```java
import de.igweb.igdatastores.DataStore;

public class Demo {

public static void main(String[] args) {
DataStore<User> userStorage = new DataStore<>();
userStorage.save(
new User("John", 19, "[email protected]"),
new User("Jane", 29, "[email protected]"),
new User("Jack", 46, "[email protected]"),
new User("Jill", 23, "[email protected]")
);

userStorage.createQuery()
.field("age").greaterThan(20)
.field("age").lessThan(24)
.field("email").endsWith("es.i")
.list().forEach(user -> System.out.println(user.getName()));
}

}
```

0 comments on commit 6775752

Please sign in to comment.