postgrest 1.4.0
postgrest: ^1.4.0 copied to clipboard
PostgREST client for Dart. This library provides an ORM interface to PostgREST.
1.4.0 #
1.3.0 #
1.2.4 #
- chore: move the repo into supabase-flutter monorepo
1.2.3 #
1.2.0 #
- BREAKING: use isolates only for huge JSON and reuse isolates #90
- This breaking chnge has been removed in v1.2.1
1.1.0 #
- fix: implement catchError #97
- feat: add generic types to
.select()#94// data is `List<Map<String, dynamic>>` final data = await supabase.from<List<Map<String, dynamic>>>('users').select(); // data is `Map<String, dynamic>` final data = await supabase.from<Map<String, dynamic>>('users').select().eq('id', myId).single();
1.0.0-dev.2 #
- BREAKING: rename
PostgrestErrortoPostgrestException
1.0.0-dev.1 #
- BREAKING:
datais returned directly and error is thrown instead of being returned within a response
try {
final data = await client.from('countries').select();
print(data);
} on PostgrestError catch (error, stacktrace) {
// handle a PostgrestError
print('$error \n $stacktrace');
} catch (error, stacktrace) {
// handle other errors
print('$error \n $stracktrace');
}
countandheadcan be specified withinFetchOptions()in.select()
final response = await client.from('countries').select('*', FetchOptions(count: CountOption.exact));
print(response.data);
print(response.count);
- BREAKING:
returningoption in.insert(),.upsert(),.update()and.delete()have been removed..select()should be appended on the query to return the result of those operations.
final data = await client.from('countries').insert({'name': 'France'}).select();
- DEPRECATED:
.execute()is now deprecated - chore: all deprecated filter methods have been removed
- chore: using
lintspackage for linting - fix: Added typesafe HTTP Methods (METHOD_GET, METHOD_HEAD, METHOD_POST, METHOD_PUT, METHOD_PATCH, METHOD_DELETE)
0.1.11 #
- fix:
order()andlimit()not working as expected with foreign table bug - feat: add foreignTable arg to
orfilter
0.1.10+1 #
- fix: bug where using multiple filters on the same field with order will wipe out the filters except the last one.
0.1.10 #
- feat: allow custom http client
- fix: bug where multiple
orderdoes not reorder the result
0.1.9 #
- feat: added
withConvertertoPostgrestBuilderfinal res = await postgrest .from('users') .select() .withConverter<List>((data) => [data]) .execute(); - fix: allow multiple filters on the same column
- fix:
Listpassed tofilter,eqorneqwill correctly be formatted
0.1.8 #
- fix: bug where
filteris not available onrpc()
0.1.7 #
- feat: added
X-Client-Infoheader
0.1.6 #
- fix: bug where
Listofnumis passes as filter parameter
0.1.5 #
- fix: bug when using
notfilter within
0.1.4 #
- feat: implement ReturningOption
- feat: add ignoreDuplicates option to upsert
- feat: create maybeSingle() function
- feat: sorting by multiple columns
- fix: export TextSearchType
0.1.3 #
- chore: added count_option export
0.1.2 #
- feat: Add CSV response
- chore: remove unnecessary new keyword on docs
0.1.1 #
- fix: PostgrestError parsing
0.1.0 #
- deprecated:
cs()in filter. Usecontains()instead. - deprecated:
cd()in filter. UsecontainedBy()instead. - deprecated:
sl()in filter. UserangeLt()instead. - deprecated:
sr()in filter. UserangeGt()instead. - deprecated:
nxl()in filter. UserangeGte()instead. - deprecated:
nxr()in filter. UserangeLte()instead. - deprecated:
adj()in filter. UserangeAdjacent()instead. - deprecated:
ov()in filter. Useoverlaps()instead. - deprecated:
fts()in filter. UsetextSearch()instead. - deprecated:
plfts()in filter. UsetextSearch()instead. - deprecated:
phfts()in filter. UsetextSearch()instead. - deprecated:
wfts()in filter. UsetextSearch()instead.
0.0.8 #
- feat: Migrate to null-safe dart
0.0.7 #
- feat: allow postgrest.rpc() filtering
- refactor: builder into separate classes
- chore: update stored procedure unit tests
0.0.6 #
- fix: error json parsing
- fix: unit tests
- refactor: remove PostgrestResponse.statusText
- refactor: clean up PostgrestError, PostgrestResponse
- chore: export PostgrestError class
- chore: update example with try/catch
0.0.5 #
- chore: export builder class
0.0.4 #
- feat: support head request and row count option
0.0.3 #
- fix: lint errors
0.0.2 #
- Remove pre-release verion notice
0.0.1 #
- refactor: improve code style
- Initial Release
0.0.1-dev.8 #
- chore: replace end() with execute()
- refactor: options param (map type) into named parameters
0.0.1-dev.7 #
- refactor: rename response.body to response.data
0.0.1-dev.6 #
- chore: return PostgrestResponse and PostgrestError instead of a Map obj
0.0.1-dev.5 #
- fix: lint errors
0.0.1-dev.4 #
- Refactor code structure by following postgrest-js TypeScript update.
- Update documents.
0.0.1-dev.3 #
- Fixes examples + typo.
0.0.1-dev.2 #
- Remove Flutter package dependency.
- Clean up + refactor.
0.0.1-dev.1 #
- Initial pre-release.