supabase-community / postgrest-go

Isomorphic Go client for PostgREST. (Now Updating)
https://supabase.io
Apache License 2.0
170 stars 27 forks source link

feat: avoid mutating shared state #14

Closed darora closed 3 years ago

darora commented 3 years ago

Instead of mutating the shared client object when dealing with table names, headers, and param fields, we instead push them down to the transport layer and have it collate them into a fresh request object instead. This allows re-use of the Supabase client for multiple requests.

Fixes #12

yusufpapurcu commented 3 years ago

LGTM 💯

Also thanks for support you're doing great works 💪