supabase / postgrest-dart

Dart client for PostgREST
https://supabase.com
MIT License
136 stars 38 forks source link

[Thien] Create PostgrestResponse class and PostgrestError class 🥳 #7

Closed duythien0912 closed 4 years ago

duythien0912 commented 4 years ago

What kind of change does this PR introduce?

This PR to create a feature request in #4 It has 2 new class in the folder:

And change code on lib, example, test to have a response with custom class PostgrestResponse. Have been move statusCode to PostgrestError.code

What is the current behavior?

4

What is the new behavior?

image

Additional context

All tests passed on folder test Not test example/main.dart yet

image

duythien0912 commented 4 years ago

@phamhieu I just

duythien0912 commented 4 years ago

I just fixed the "stored procedure" test case already ^^