tursodatabase / libsql-client-rs

libSQL Rust client library can be used to communicate with sqld natively over HTTP protocol with native Rust interface.
MIT License
75 stars 27 forks source link

Implement custom Serde on ResultSet or Row #37

Closed glommer closed 11 months ago

glommer commented 1 year ago

Cloudflare D1 allows you to deserialize the ResultSet straight into a struct:

https://github.com/cloudflare/workers-rs#example-usage-1

We should have a way to do the same. We can deserialize Row, but maybe there's a more efficient way by doing it earlier, before we build the Row struct.

glommer commented 11 months ago

This should be implemented already, since Row supports Deserialize.

(CC @LucioFranco )