Skip to content

Commit d79c34d

Browse files
authored
Merge pull request #25 from liubao68/main
update readme
2 parents 3c00d05 + 5bd6647 commit d79c34d

File tree

2 files changed

+2
-55
lines changed

2 files changed

+2
-55
lines changed

.github/CODE_OF_CONDUCT.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ from the project team.
3333
This Code of Conduct applies both within project spaces and in public spaces when an
3434
individual is representing the project or its community.
3535

36-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
37-
contacting a project maintainer at [email protected] . All complaints will
38-
be reviewed and investigated and will result in a response that is deemed necessary and
39-
appropriate to the circumstances. Maintainers are obligated to maintain confidentiality
40-
with regard to the reporter of an incident.
41-
4236
This Code of Conduct is adapted from the
4337
https://contributor-covenant.org[Contributor Covenant], version 1.3.0, available at
4438
https://contributor-covenant.org/version/1/3/0/[contributor-covenant.org/version/1/3/0/]

README.md

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ This driver provides the following features:
1111
* Connection Fail-over supporting multiple hosts
1212
* TLS
1313
* Explicit transactions
14-
* Notifications
1514
* Logical Decode
1615
* Binary data transfer
1716
* Execution of prepared statements with bindings
@@ -22,10 +21,6 @@ This driver provides the following features:
2221
[p]: https://www.huaweicloud.com/product/gaussdb.html
2322
[r]: https://github.com/r2dbc/r2dbc-spi
2423

25-
## Code of Conduct
26-
27-
This project is governed by the [Code of Conduct](.github/CODE_OF_CONDUCT.adoc). By participating, you are expected to uphold this code of conduct.
28-
2924
## Getting Started
3025

3126
Here is a quick teaser of how to use R2DBC GaussDB in Java:
@@ -144,22 +139,6 @@ Artifacts can be found on [Maven Central](https://search.maven.org/search?q=gaus
144139
</dependency>
145140
```
146141

147-
If you'd rather like the latest snapshots of the upcoming major version, use our Maven snapshot repository and declare the appropriate dependency version.
148-
149-
```xml
150-
<dependency>
151-
<groupId>com.huaweicloud.gaussdb</groupId>
152-
<artifactId>gaussdb-r2dbc</artifactId>
153-
<version>${version}.SNAPSHOT</version>
154-
</dependency>
155-
156-
<repository>
157-
<id>sonatype-nexus-snapshots</id>
158-
<name>Sonatype OSS Snapshot Repository</name>
159-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
160-
</repository>
161-
```
162-
163142
## Connection Fail-over
164143

165144
To support simple connection fail-over it is possible to define multiple endpoints (host and port pairs) in the connection url separated by commas. The driver will try once to connect to each of them
@@ -187,31 +166,6 @@ require an explicit transaction (`BEGIN…COMMIT/ROLLBACK`). Newer pgpool versio
187166
size or enable compatibility mode. Compatibility mode avoids cursors in auto-commit mode (`Execute` with no limit + `Sync`). Cursors in a transaction use `Execute` (with fetch size as limit) + `Sync`
188167
as message flow.
189168

190-
## Listen/Notify
191-
192-
> This feature not implemented yet
193-
194-
Listen and Notify provide a simple form of signal or inter-process communication mechanism for processes accessing the same PostgreSQL database. For Listen/Notify, two actors are involved: The
195-
sender (notify) and the receiver (listen). The following example uses two connections to illustrate how they work together:
196-
197-
```java
198-
PostgresqlConnection sender= …;
199-
PostgresqlConnection receiver= …;
200-
201-
Flux<Notification> listen = receiver.createStatement("LISTEN mymessage")
202-
.execute()
203-
.flatMap(PostgresqlResult::getRowsUpdated)
204-
.thenMany(receiver.getNotifications());
205-
206-
Mono<Void> notify=sender.createStatement("NOTIFY mymessage, 'Hello World'")
207-
.execute()
208-
.flatMap(PostgresqlResult::getRowsUpdated)
209-
.then();
210-
```
211-
212-
Upon subscription, the first connection enters listen mode and publishes incoming `Notification`s as `Flux`. The second connection broadcasts a notification to the `mymessage` channel upon
213-
subscription.
214-
215169
## Transaction Definitions
216170

217171
Postgres supports additional options when starting a transaction. In particular, the following options can be specified:
@@ -606,7 +560,6 @@ Running the JMH benchmarks builds and runs the benchmarks without running tests.
606560
$ ./mvnw clean install -Pjmh
607561
```
608562

609-
## License
610-
This project is released under version 2.0 of the [Apache License][l].
563+
## Code of Conduct
611564

612-
[l]: https://www.apache.org/licenses/LICENSE-2.0
565+
This project is governed by the [Code of Conduct](.github/CODE_OF_CONDUCT.adoc). By participating, you are expected to uphold this code of conduct.

0 commit comments

Comments
 (0)