questdb / nodejs-questdb-client

QuestDB Node.js Client
35 stars 8 forks source link

How to query? #10

Closed fishuke closed 1 year ago

fishuke commented 1 year ago

I see there is sender implementation but where is reading?

fahminlb33 commented 1 year ago

I'm also looking for query support in this library. For now I think the only possible ways to query data from QuestDB is from REST API or PostgreSQL wire protocol. It would be really helpful to also include querying capability to this library so I don't have to use pg

fishuke commented 1 year ago

I also used pg for reading hopefully it will be integrated.

fahminlb33 commented 1 year ago

Based on the documentation this library looks like uses the InfluxDB Line Protocol which doesn't support querying data (the example uses port 9009).

glasstiger commented 1 year ago

Sorry but missed this question somehow. You are correct, the client uses ILP to ingest data into QuestDB and does not support queries. You can use the REST API or Postgres wire protocol to query the data. There are plans to add support for queries through the client but not sure when it will be implemented.