unjs / db0

📚 Lightweight SQL Connector
https://db0.unjs.io
MIT License
173 stars 20 forks source link

Connector support tracker #32

Open pi0 opened 1 year ago

pi0 commented 1 year ago

Supporting SQL(lite) connectors for db0 is almost straightforward forward and by having platform/vendor connectors, we take the pain away from end-users for (almost) zero config experience. Using this issue to keep track of possible connectors in the roadmap:

moshetanzer commented 9 months ago

suposing you didnt add some of these connectors to docs on purpose? Or shoudl they be added with planned message?

vinayakkulkarni commented 9 months ago

I'd also would love to add multiple connectors to Postgres, ~ to lucia-auth.com

pi0 commented 9 months ago

@moshetanzer only native(app) ones wasn't sure to list for now if anything else missing feel free to make PR.

@vinayakkulkarni Surely we can support postgres to but I'm curious any specific reason you would prefer it over pg? my first impression is that pg has much more downloads and even cloudflare TCP variant.

alex-eri commented 8 months ago

maybe ODBC?

MickL commented 8 months ago

Would LOVE to see Vercel Postgres and Neon :)

MertcanYuzer commented 8 months ago

MSSQL support would be awesome

vinayakkulkarni commented 7 months ago

@moshetanzer only native(app) ones wasn't sure to list for now if anything else missing feel free to make PR.

@vinayakkulkarni Surely we can support postgres to but I'm curious any specific reason you would prefer it over pg? my first impression is that pg has much more downloads and even cloudflare TCP variant.

I tried postgres, pg & the neon one but seems only postgres pkg is the one that works for.

Error: Cannot resolve "cloudflare:sockets" from "/home/runner/work/vinayakkulkarni.dev/vinayakkulkarni.dev/node_modules/postgres/cf/polyfills.js" and externals are not allowed!
  1. Tried deploying on deno deploy, got the above error, see the workflow –https://github.com/vinayakkulkarni/vinayakkulkarni.dev/actions/runs/8592876841/job/23543545906
  2. Tried deploying on CF worker as well but that failed too, lemme find the workflow which failed to deploy on CF
  3. Only using postgres pkg & Vercel NITRO_PRESET=vercel worked for me
vinayakkulkarni commented 7 months ago

Related issue(s):

sandros94 commented 5 months ago

I'm curious to understand something: for an HTTP only connector (in particular I'm talking about SurrealDB), is it enough to create an ofetch and map the various RPC endpoints?

If this is the case I would like to help with that one, considering the knowledge I've gathered while writing nuxt-surrealdb module

reslear commented 5 months ago

for capacitor looks good

Kampouse commented 4 months ago
image

am trying the latest with libsql and get this