Skip to content

Commit 83b41e7

Browse files
committed
docs: Documentation tweaks.
1 parent 121e16e commit 83b41e7

File tree

4 files changed

+29
-20
lines changed

4 files changed

+29
-20
lines changed

BUILD.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Visual Studio Code should also work well provided you have the "C/C++",
3838
## Build outputs
3939

4040
The build will generate libraries compiled to `./build`
41-
(or your otherwise selected build directory).
41+
(or your otherwise selected CMake build directory).
4242

4343
You will find one dynamic library and depending on
4444
the operating system either one or two static libraries.
@@ -85,5 +85,5 @@ libraries against a live instance of QuestDB you need to:
8585
Delete the `./build` directory.
8686

8787
```bash
88-
$ rm -fR build
88+
$ rm -fR build # or your otherwise selected CMake build directory.
8989
```

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ add_test(
127127
# System testing Python3 script.
128128
# This will download the latest QuestDB instance from Github,
129129
# thus will also require a Java 11 installation to run the tests.
130+
option(QUESTDB_SYSTEM_TESTING "Run system tests" OFF)
130131
if(QUESTDB_SYSTEM_TESTING)
131132
find_package(
132133
Python3

DEPENDENCY.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ how we tag releases.
1010

1111
We do not ship binaries.
1212

13-
Instead you should obtain a copy of the code sync'ed up
13+
Instead you should rely on a copy of the code sync'ed up
1414
to the latest annotated tag. You can find the list of tags on
1515
the [project's GitHub tag page](tags) or by listing the annotated tags in git
1616
from a checked out copy of the code.
@@ -22,8 +22,8 @@ git tag -n99 --sort=-creatordate
2222

2323
Examples below will use a dummy name of `CHOSEN_RELEASE_TAG` that you will have
2424
to substitute for one of these tag names. During development you may also
25-
substitute it to a specific commit or just `main`, but we don't recommend this
26-
for production use.
25+
substitute it to a specific commit or just `main`, but we don't recommend
26+
running non-tagged code for production use.
2727

2828
## Getting notified of new releases
2929

@@ -32,7 +32,8 @@ our [community page](https://questdb.io/community/).
3232

3333
## main.cpp
3434

35-
We will cover various approaches.
35+
We will cover various approaches of including `c-questdb-client` into your
36+
project.
3637

3738
In all examples below, we will attempt to compile:
3839

@@ -50,8 +51,8 @@ int main()
5051
## Option 1: CMake & FetchContent integration
5152

5253
If your project already uses CMake, you may use its `FetchContent` feature to
53-
automatically clone the repository into your build directory when compiling your
54-
project.
54+
automatically clone the repository into your temporary build directory when
55+
compiling your project.
5556

5657
Approach upsides:
5758
* Easiest setup.
@@ -65,8 +66,9 @@ Approach downsides:
6566
* Slightly slows down your clean-build time as it runs `git clone` every time
6667
you configure your CMake project (no impact on rebuild).
6768

68-
In the example CMake below, you need to substitute `CHOSEN_RELEASE_TAG` for one
69-
of our releases. Don't forget to also update `your_project_name`.
69+
In the example `CMakeLists.txt` configuration below, you need to substitute
70+
`CHOSEN_RELEASE_TAG` for one of our releases. Don't forget to also update
71+
`your_project_name`.
7072

7173
```cmake
7274
# CMakeLists.txt
@@ -119,7 +121,8 @@ Grafting can be accomplished via either one of:
119121
Pick either approach to obtain a copy of this library's code into
120122
the `deps/c-questdb-client` directory within your git repository.
121123

122-
Once done, the `CMakeLists.txt` config is the same.
124+
Once done, [configuring `CMakeLists.txt`](cmakeliststxt_with_subdirectory)
125+
config is the same.
123126

124127
### Grafting via `git subtree` (recommended)
125128

@@ -142,7 +145,8 @@ from the command below and run it from your project's root:
142145
git subtree add --prefix deps/c-questdb-client https://github.com/questdb/c-questdb-client.git CHOSEN_RELEASE_TAG --squash
143146
```
144147

145-
Anyone else in the team who will `git clone` your repo will get all files.
148+
Anyone else in the team who will `git clone` your repo will obtain all necessary
149+
files to build the project without additional steps.
146150

147151
At a later date, to upgrade to a newer release (or to revert back to an older
148152
one) pick a new release tag and run the following command, editing
@@ -197,7 +201,7 @@ git add deps/c-questdb-client
197201
git commit -m "Updated submodule: c-questdb-client @ NEWLY_CHOSEN_RELEASE_TAG"
198202
```
199203

200-
### CMakeLists.txt
204+
### CMakeLists.txt with subdirectory
201205

202206
Now that our library's code is accessible within your project's
203207
`deps/c-questdb-client` path we will try and build with it.

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ The following is a non-exhaustive of guidelines to follow:
8282
* For a given row, a column name should not be repeated.
8383
If it's repeated, only the first value will be kept.
8484
This also applies to symbols.
85-
* Values for a given colum should always have the same type.
85+
* Values for a given column should always have the same type.
8686
If changing types the whole row will be dropped (unless we can cast).
8787
* If supplying timestamps these need to be at least equal to
8888
previous ones in the same table, unless using the out of order
89-
feature. Such rows would be dropped.
89+
feature. Out of order rows would be dropped.
9090
* The timestamp column should be written out through the provided
9191
`line_sender_at` function (in C) or or `.at()` method in (C++).
9292
It is also possible to write out additional timestamps values
9393
as columns.
9494

9595
*Refer to the
9696
[protocol reference docs](https://questdb.io/docs/reference/api/ilp/overview/)
97-
for details and more usage guidelines.*
97+
for more details and usage guidelines.*
9898

9999
### Data type conversions
100100

@@ -103,6 +103,9 @@ that the set supported by QuestDB.
103103
We map these types into QuestDB types and perform conversions
104104
as necessary wherever possible.
105105

106+
For more details see our
107+
[datatypes](https://questdb.io/docs/reference/sql/datatypes) page.
108+
106109
## Building this library
107110

108111
We do not ship binaries. To build, prepare your system with:
@@ -223,11 +226,12 @@ Note how if you're using C++, `.close()` can be called multiple times and will
223226
also be called automatically on object destruction.
224227

225228
For simplicity the the diagram above does not show that the `.close()` method
226-
and the `~line_sender` destructor.
229+
and the `~line_sender` destructor at any time.
227230

228231
Note that most methods in C++ may throw `questdb::ilp::line_sender_error`
229232
exceptions. The C++ `line_sender_error` type inherits from `std::runtime_error`
230-
and you can obtain an error message description by calling `.what()`.
233+
and you can obtain an error message description by calling `.what()` and an
234+
error code calling `.code()`.
231235

232236
#### Resuming after an error
233237

@@ -249,12 +253,12 @@ For more details see our
249253

250254
## If you don't see any data
251255

252-
You may be experiencing one of these three issues.
256+
You may be experiencing one of these issues:
253257

254258
### QuestDB configuration
255259

256260
If you can't initially see your data through a `select` query straight away,
257-
his is normal: by default the database will only commit data it receives
261+
this is normal: by default the database will only commit data it receives
258262
though the line protocol periodically to maximize throughput.
259263

260264
For dev/testing you may want to tune the following database configuration

0 commit comments

Comments
 (0)