Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bordereast/jaql

ArangoDB AQL Query Builder for Java 8+
https://github.com/bordereast/jaql

aql arangodb java java-8 query-builder

Last synced: 3 days ago
JSON representation

ArangoDB AQL Query Builder for Java 8+

Awesome Lists containing this project

README

        

# JAQL (Jackal)
ArangoDB AQL Query Builder for Java 8+

```
JAQL query = new JAQL();
User user = new User();

String q = query
.forEntity(user)
.filter("firstName", Operator.equals, "@f1")
.logical(Logical.AND)
.logical(Logical.OPEN_BRACKET)
.filter("lastName", Operator.notEquals, "@f2")
.and("lastName", Operator.equals, query.addParam("f3", "Vader")) // can add param like this
.logical(Logical.CLOSE_BRACKET)
.returnEntity(user)
.withParam("f1", "Darth") // or add param like this
.withParam("f2", "Skylord")
.build();
```