Skip to content

questdb/questdb-ping-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 crate.

Example

E.g. if you're sending ILP via:

Sender::from_conf("http::addr=localhost:9000;")

Check if the DB is up with:

use questdb-ping-rs::ping_questdb;

ping_questdb("http::addr=localhost:9000;")

See 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages