postgrest 2.0.0-dev.0 copy "postgrest: ^2.0.0-dev.0" to clipboard
postgrest: ^2.0.0-dev.0 copied to clipboard

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/
dynamic main() async {
  const supabaseUrl = '';
  const supabaseKey = '';
  final client = PostgrestClient(
    '$supabaseUrl/rest/v1',
    headers: {'apikey': supabaseKey},
    schema: 'public',
  );
  try {
    final response = await client.from('countries').select();
    print(response);
  } on PostgrestException catch (e) {
    // handle PostgrestError
    print(e.code);
    print(e.message);
  }
}
114
likes
0
pub points
98%
popularity

Publisher

verified publishersupabase.io

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

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

http, meta, yet_another_json_isolate

More

Packages that depend on postgrest