You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+80-61Lines changed: 80 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
A minimal implementation for a Dgraph client for Java 11 and above, using [grpc].
7
7
8
-
### IMP NOTE:
8
+
### IMP NOTE:
9
9
v24.0.0 features an upgraded protobuf dependency which requires an upgrade to JDK 11. On account of this breaking change, all legacy applications built upon JDK 8 would be impacted.
10
10
11
11
[grpc]: https://grpc.io/
@@ -22,28 +22,41 @@ and understand how to run and work with Dgraph.
22
22
**Use [Discuss Issues](https://discuss.dgraph.io/c/issues/35/clients/46) for reporting issues about this repository.**
23
23
24
24
## Table of Contents
25
-
-[Download](#download)
26
-
-[Supported Versions](#supported-versions)
27
-
-[Quickstart](#quickstart)
28
-
-[Intro](#intro)
29
-
-[Using the Synchronous Client](#using-the-synchronous-client)
30
-
*[Creating a Client](#creating-a-client)
31
-
*[Creating a Client for Dgraph Cloud](#creating-a-client-for-dgraph-cloud)
32
-
*[Creating a Secure Client Using TLS](#creating-a-secure-client-using-tls)
33
-
*[Check Dgraph Version](#check-dgraph-version)
34
-
*[Login Using ACL](#login-using-acl)
35
-
*[Altering the Database](#altering-the-database)
36
-
*[Creating a Transaction](#creating-a-transaction)
37
-
*[Running a Mutation](#running-a-mutation)
38
-
*[Committing a Transaction](#committing-a-transaction)
39
-
*[Running a Query](#running-a-query)
40
-
*[Running a Query with RDF response](#running-a-query-with-rdf-response)
41
-
*[Running an Upsert: Query + Mutation](#running-an-upsert-query--mutation)
42
-
*[Running a Conditional Upsert](#running-a-conditional-upsert)
v24.0.0 features an upgraded protoc-protobuf dependency that requires an upgrade to JDK 11. This version is incompatible with Java 1.8 and and requires an upgrade to Java 11.
98
+
v24.0.0 features an upgraded protoc-protobuf dependency that requires an upgrade to JDK 11.
99
+
This version is incompatible with Java 1.8 and and requires an upgrade to Java 11.
85
100
86
-
The following is only applicable to dgraph4j versions < v24.X.X.
101
+
The following is only applicable to dgraph4j versions < v24.X.X.
87
102
* If you aren't using gRPC with TLS, then the above version table will work for you with Java
88
103
1.8.x too.
89
104
* If you're using gRPC with TLS on Java 1.8.x, then you will need to follow gRPC docs [here
90
105
](https://github.com/grpc/grpc-java/blob/master/SECURITY.md#tls-on-non-android). Basically, it
91
-
will require you to add the following dependency in your app with correct version for the
92
-
corresponding `grpc-netty` version used by `dgraph4j`. You can find out the correct version of
106
+
will require you to add the following dependency in your app with correct version for the
107
+
corresponding `grpc-netty` version used by `dgraph4j`. You can find out the correct version of
93
108
the dependency to use from the version combination table in [this section] in `grpc-netty` docs.
<version><!-- See table in gRPC docs for correct version --></version>
102
117
</dependency>
103
118
```
104
-
119
+
105
120
For Gradle:
106
-
121
+
107
122
```groovy
108
123
compile 'io.netty:netty-tcnative-boringssl-static:<See table in gRPC docs for correct version>'
109
124
```
110
-
111
-
The following table lists the `grpc-netty` versions used by different `dgraph4j` versions over time, along with the supported versions of `netty-tcnative-boringssl-static` for the corresponding `grpc-netty` version:
112
-
113
-
| dgraph4j version | grpc-netty version | netty-tcnative-boringssl-static version |
For example, when using `dgraph4j v24.0.0`, the version of the `netty-tcnative-boringssl-static` dependency to be used is `4.1.100.Final`, as suggested by gRPC docs for `grpc-netty v1.65.1`.
125
+
126
+
The following table lists the `grpc-netty` versions used by different `dgraph4j` versions
127
+
over time, along with the supported versions of `netty-tcnative-boringssl-static`
128
+
for the corresponding `grpc-netty` version:
129
+
130
+
| dgraph4j version | grpc-netty version | netty-tcnative-boringssl-static version |
0 commit comments