Open Trimsamsa opened 1 year ago
Hey @Imagi2rey, thanks for raising an issue. Do you have a sandbox you can share with us?
Hi @Imagi2rey, it looks like the only property available on questdb
is Sender
. The property questdb.Client
seems to be undefined
, so we can't call .create()
. I'm not familiar with the package but can't find Client
in the docs either. Do you maybe need Sender
instead?
Hi @tristandubbeld, what am i trying to do is that i wanted to fetch the data from "trips" table from questdb (open source), inside this react sandbox (above link) but this sandbox don't have terminal access so can't install questdb locally, so at lastly was trying to access it through @questdb/nodejs-client (chatgpt told me that I can use Client.create()). Can you please tell me how I can use questdb to fetch "trips" table data inside this sandbox?
Sender is just for sending the data, but I want to fetch the data inside my sandbox. Someone have given me an assignmet and have told me to use questdb in this react template using codesandbox. I am trying from 3-4 days but nothing working :(
QuestDB link: https://questdb.io/docs/develop/query-data/#http-rest-api QuesetDB Github: https://github.com/questdb/questdb
Or how can I get questdb from here to inside the sandbox? Get questdb at https://questdb.io/get-questdb/.
Thanks for the explanation @Imagi2rey! Sounds to me that you want to create and run a database locally. In that case you do indeed need an environment with a terminal. I can't guarantee it will work as I've never used questdb before, but if you spin up an environment with vite.react.new you have access to a terminal. You can find more information about our new editor in our docs. Let me know if you have any other questions about this.
As to ChatGPT, it can be convincingly wrong sometimes. When I look at the nodejs-qeustdb-client
code it's only exposing Sender
. You might need to fetch data from the database in a different way.
Hii, I am new to CodeSandbox and was trying to use QuestDB in my React app. I added @questdb/nodejs-client using the Dependencies section (Add Dependency). But when I try to create an instance, it gives me this error.
Here's my App.js file
package.json file
Because React apps in sandbox do not provide terminal access, I am unable to install questdb in my react apps and must rely on dependencies.
Thanks in advance