tauri-apps / plugins-workspace

All of the official Tauri plugins in one place!
https://tauri.app
Apache License 2.0
814 stars 224 forks source link

[sql] unsupported datatype: UUID #1126

Open KauanCurbani opened 5 months ago

KauanCurbani commented 5 months ago

When I sent a query to my Postgres database, this error was returned, but it is common to use this type in Postgres

image image

cmmartin commented 4 months ago

I've got unsupported datatype: NUMERIC in postgres. Seems like there should be a quick way to add these in userland

FabianLars commented 2 months ago

Seems like there should be a quick way to add these in userland

That'd be hard or impossible (at least with how the SQLx crate currently works) because the queries happen in rust so the database types have to be mapped to rust types and then to json compatible types so that they can be sent back to js. I don't think we'll ever cover all types the db supports, but you can always open an issue about a missing (if there's none already) and we can take a look.

cmmartin commented 2 months ago

Yeah. When I wrote that, I actually meant in rust when I said "userland". But I've since realized that's kind of silly because the whole point of this plugin is you don't have to write rust