floris-xlx / supabase_rs

Supabase SDK for Rust
MIT License
6 stars 2 forks source link

Could the bulk insert feature just be a wrapper for the insert function that takes in a `Vec` of values? #8

Closed izyuumi closed 1 week ago

izyuumi commented 2 weeks ago

As shown in the screenshot I took from the Auto-generated documentation page, it looks like the bulk inserting is using the same API endpoint as inserting, just that bulk inserting passes an array of values instead of a single one. Does this mean that the bulk insert feature could be implemented by creating a similar function to insert that takes a Vec of values as an argument? If so, I could implement that :) CleanShot 20240708 063736

floris-xlx commented 2 weeks ago

im pretty sure supabase.py does the same which i modeled supabase_rs after.

when i merge your other PR today i will add this including some other things.

this is the most complete and most downloaded supabase sdk for rust, so if we cover the entire api we can probably get our names listed under the rust SDK on their docs page :P