postgrest 0.0.1-dev.3 copy "postgrest: ^0.0.1-dev.3" to clipboard
postgrest: ^0.0.1-dev.3 copied to clipboard

outdated

A PostgREST api client written in Dartlang.

example/main.dart

import 'package:postgrest/postgrest.dart';

///
/// Example to use with Supabase API https://supabase.io/
///
void main(List<String> arguments) async {
  var client = PostgrestClient("SUPABASE_API_ENDPOINT/rest/v1", {
    'headers': {
      'apikey': 'SUPABSE_API_KEY',
    },
    'schema': 'public'
  });

  final response =
      await client.from('countries').select('*').order('name', true).end();
  if (response['statusCode'] == 200) {
    print('Countries List: ${response['body']}.');
  } else {
    print('Request failed with status: ${response['statusCode']}.');
  }
}
120
likes
0
points
110k
downloads

Publisher

verified publishersupabase.io

Weekly Downloads

A PostgREST api client written in Dartlang.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on postgrest