https://github.com/questdb/questdb-ping-rs
https://github.com/questdb/questdb-ping-rs
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/questdb/questdb-ping-rs
- Owner: questdb
- License: apache-2.0
- Created: 2025-01-27T16:46:12.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-27T17:15:21.000Z (12 months ago)
- Last Synced: 2025-06-06T22:11:16.425Z (7 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# questdb-ping-rs
## Overview
Example code on how to check if a QuestDB instance is up and running using Rust.
The crate's `ping_questdb` function takes the same config string that is passed
to the ILP client. In other words, the same one passed to `Sender::from_conf` in
the [`questdb-rs`](https://docs.rs/questdb-rs/latest/questdb/) crate.
## Example
E.g. if you're sending ILP via:
```rust
Sender::from_conf("http::addr=localhost:9000;")
```
Check if the DB is up with:
```rust
use questdb-ping-rs::ping_questdb;
ping_questdb("http::addr=localhost:9000;")
```
See [`src/main.rs`](src/main.rs) for the full example.
## Dependencies
This crates depends on `ureq==2.9`. This is the same version (as of writing,
2025-01-27) used by the `questdb-rs` crate.
This dependency was chose in an effort to reduce the number of dependencies
that a client project would use.