Generate Dart Types from Database Schema
@spydon is already working on this.
Since Jul 23, 2026.
Assessment
This issue has not been assessed yet.
Description
Are there any current ways or future plans to generate Dart types from Supabase tables?
for example, currently I do this where I use strings inside the methods and the output is a dynamic map that I manually convert
var result = await supabase //
.from('TestTable')
.select()
.eq('id', 1)
.execute();
var dataFirst = result.data[0];
var data = TestTable(id: dataFirst["id"], name: dataFirst["name"]);
and I would like to do this; with the type generated automatically for me (a bit more like c#'s entity framework or dart's Conduit), where the type returned is a specific type that matches the database.
var testTable = await supabase //
.TestTable
.select()
.eq((x) => x.id, 1)
.execute();
print(testTable.name);
- Dominant language
- Dart
- Stars
- 1k
- Forks
- 310
- Avg merge
- 22h 15m
- Merged PRs (30d)
- 97
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/supabase-flutter
-
RFC Offline support Openenhancement v3
Difficulty 5/5 Over a week Newbie friendliness 25/100
supabase/supabase-flutter#1396 · 2 comments ·
-
blocked bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
supabase/supabase-flutter#1287 · 25 comments · 1 reaction ·
-
☂️ v3 tracking issue Openplanned v3
supabase/supabase-flutter#1278 · 1 comment · 1 assignee ·
-
auth blocked enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
supabase/supabase-flutter#1063 · 4 comments ·
-
blocked enhancement planned postgrest
Difficulty 4/5 3-5 days Newbie friendliness 45/100
supabase/supabase-flutter#998 · 7 comments ·
All issues in supabase/supabase-flutter
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bus
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100