File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 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 `
16163 ) 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
2042YDB JDBC Driver supports the following [ authentication modes] ( https://ydb.tech/en/docs/reference/ydb-sdk/auth ) :
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments