Skip to content

Commit 07cdee7

Browse files
committed
feat: mark typed table access as experimental in typegen output
1 parent 7ed297d commit 07cdee7

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

packages/supabase_typegen/lib/src/dart_generator.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ String generateDartCode(
3232
..writeln('//')
3333
..writeln('// Source schema: ${schema.schemaName}')
3434
..writeln()
35+
..writeln('// The typed table access API is still experimental.')
36+
..writeln('// ignore_for_file: experimental_member_use')
37+
..writeln()
3538
..writeln("import '$importUri';")
3639
..writeln();
3740

packages/supabase_typegen/test/generated_schema_behavior_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// The typed table access API under test is annotated @experimental.
2+
// ignore_for_file: experimental_member_use
3+
14
import 'dart:convert';
25

36
import 'package:http/http.dart';

packages/supabase_typegen/test/goldens/supabase_schema.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
//
33
// Source schema: public
44

5+
// The typed table access API is still experimental.
6+
// ignore_for_file: experimental_member_use
7+
58
import 'package:postgrest/postgrest.dart';
69

710
/// Postgres enum `public.mood`.

0 commit comments

Comments
 (0)