Closed zAlweNy26 closed 3 weeks ago
But D1 is not a postgres
database.
D1 is compatible with most SQLite’s SQL convention since it leverages SQLite’s query engine.
Also,
NuxtHub Database is a layer on top of Cloudflare D1, a serverless SQL database.
But D1 is not a
postgres
database.D1 is compatible with most SQLite’s SQL convention since it leverages SQLite’s query engine.
Also,
NuxtHub Database is a layer on top of Cloudflare D1, a serverless SQL database.
Ok thanks I missed that part. So there is no way to use postgres?
I mean you could use some other postgres
DB instead of Cloudflare D1
along with Drizzle
. That is very much doable.
I mean you could use some other
postgres
DB instead ofCloudflare D1
along withDrizzle
. That is very much doable.
Can you point me to one of them? I'm not much into Cloudflare
I mean you could use some other
postgres
DB instead ofCloudflare D1
along withDrizzle
. That is very much doable.Can you point me to one of them? I'm not much into Cloudflare
Cloudflare
doesn't provide a Postgres
db as far as I know. You could look at other third party providers or self host it.
Some providers are mentioned in this link
Thank you so much, I'll look into that. So at the moment I'm unable to use postgres with NuxtHub?
Thank you so much, I'll look into that. So at the moment I'm unable to use postgres with NuxtHub?
The D1 database part from NuxtHub, yes.
You can still use another Postgres service together with other things from NuxtHub, and host your app on Cloudflare pages using NuxtHub.
Thanks for the clarification and patience, I will definitely do that!
I agree with @ra-jeev said (and thank you for the help!)
For Postgres, Cloudflare worked on Hyperdrive that we plan to support as well in the future: https://developers.cloudflare.com/hyperdrive/
But honestly, D1 is a very powerful database that cover most cases
Oooo, didn't know Cloudflare supports existing Postgres DBs. Thanks.
Describe the bug I don't understand what I am doing wrong in my project. I'm using the starter template (modified ofc) and following the documentation of Nuxt Hub for using Drizzle. The only difference (except for the tables) is the db dialect,
postgresql
. When I generate the migrations everything is ok, but then when I start the project, I see this error in console:So I'm unable to test the endpoints I created because it doesn't generate the tables. What am I doing wrong?