postgrest 0.0.2 copy "postgrest: ^0.0.2" to clipboard
postgrest: ^0.0.2 copied to clipboard

outdated

PostgREST client for Dart. This library provides an ORM interface to PostgREST.

example/main.dart

import 'package:postgrest/postgrest.dart';

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

  final response =
      await client.from('countries').select('*').order('name', ascending: true).execute();
  if (response.status == 200) {
    print('Countries List: ${response.data}.');
  } else {
    print('Request failed with status: ${response.status}.');
  }
}
103
likes
0
pub points
97%
popularity

Publisher

verified publishersupabase.io

PostgREST client for Dart. This library provides an ORM interface to PostgREST.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on postgrest