Skip to content

Commit a422539

Browse files
committed
docs: add headings
1 parent 7a379af commit a422539

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ dependencies {
6363

6464
## Usage
6565

66+
### Create client
67+
6668
To start with the client, import the `com.influxdb.v3.client` package and create a `InfluxDBClient` by:
6769

6870
```java
@@ -91,7 +93,9 @@ public class IOxExample {
9193
}
9294
```
9395

94-
to insert data, you can use code like this:
96+
### Write
97+
98+
To insert data, you can use code like this:
9599

96100
```java
97101
//
@@ -144,7 +148,7 @@ String record = "temperature,location=north value=60.0";
144148
client.writeRecord(record);
145149
```
146150

147-
### Accept partial writes and inspect failed lines
151+
#### Accept partial writes and inspect failed lines
148152

149153
Partial writes are enabled by default.
150154
`acceptPartial` can be configured in three ways: client defaults via `WriteOptions`, connection string / environment variable / system property (`writeAcceptPartial` / `INFLUX_WRITE_ACCEPT_PARTIAL` / `influx.writeAcceptPartial`), or per-write `WriteOptions`.
@@ -158,15 +162,17 @@ With InfluxDB Core/Enterprise, when a write request fails due to one or more inv
158162
When partial writes are disabled, any rejected line causes all lines to be rejected.
159163
InfluxDB Clustered does not return this structured partial-write error format.
160164

161-
### Compatibility with InfluxDB Clustered
165+
#### Compatibility with InfluxDB Clustered
162166

163167
For InfluxDB Clustered, enable `useV2Api` for writes.
164168
Like other write options, this can be configured in client code, connection string / environment variable / system property (`writeUseV2Api` / `INFLUX_WRITE_USE_V2_API` / `influx.writeUseV2Api`), or per-write `WriteOptions`.
165169

166170
If `useV2Api` is set, `acceptPartial` is ignored because this compatibility mode does not support partial-write controls.
167171
Any rejected line causes all lines to be rejected.
168172

169-
to query your data, you can use code like this:
173+
### Query
174+
175+
To query your data, you can use code like this:
170176

171177
```java
172178
//

0 commit comments

Comments
 (0)