Skip to content

Commit 9713d21

Browse files
committed
Update shaded artifact
1 parent 188dcdf commit 9713d21

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,31 @@
1212
* Local or remote Docker (anonymous authentication):<br>`jdbc:ydb:grpc://localhost:2135/local`
1313
* Self-hosted cluster:<br>`jdbc:ydb:grpcs://<host>:2136/Root/testdb?secureConnectionCertificate=file:~/myca.cer`
1414
* Connect with token to the cloud instance:<br>`jdbc:ydb:grpcs://<host>:2135/path/to/database?token=file:~/my_token`
15-
* Connect with service account to the cloud instance: `jdbc:ydb:grpcs://<host>:2136/path/to/database?saFile=file:~/sa_key.json`
15+
* Connect with service account to the cloud instance:<br>`jdbc:ydb:grpcs://<host>:2136/path/to/database?saFile=file:~/sa_key.json`
1616
3) Execute queries, see example in [YdbDriverExampleTest.java](jdbc/src/test/java/tech/ydb/jdbc/YdbDriverExampleTest.java)
1717

18+
### Usage with Maven
19+
The recommended way to use the YDB JDBC driver in your project is to consume it from Maven.
20+
Specify the YDB JDBC driver in the dependencies:
21+
22+
```xml
23+
<dependencies>
24+
<!-- Base version -->
25+
<dependency>
26+
<groupId>tech.ydb.jdbc</groupId>
27+
<artifactId>ydb-jdbc-driver</artifactId>
28+
<version>2.0.0</version>
29+
</dependency>
30+
31+
<!-- Shaded version with included dependencies -->
32+
<dependency>
33+
<groupId>tech.ydb.jdbc</groupId>
34+
<artifactId>ydb-jdbc-driver-shaded</artifactId>
35+
<version>2.0.0</version>
36+
</dependency>
37+
</dependencies>
38+
```
39+
1840
### Authentication modes
1941

2042
YDB JDBC Driver supports the following [authentication modes](https://ydb.tech/en/docs/reference/ydb-sdk/auth):

jdbc-shaded/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<version>2.0.0-RC4</version>
1010
</parent>
1111

12-
<artifactId>ydb-jdbc-driver-full</artifactId>
12+
<artifactId>ydb-jdbc-driver-shaded</artifactId>
1313

1414
<name>YDB JDBC Driver Shaded</name>
1515
<description>JDBC Driver Shaded over YDB Java SDK</description>

0 commit comments

Comments
 (0)