`date` columns should be provided as `DateTime` instead of `String`.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
No file or test is named in the issue. Start by reproducing the query against a table with a date column and inspect how the returned value is typed; done means the date is returned as a DateTime representing the stored year, month, and day rather than a String.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
Currently, if I have a table with a column of type date, when I query for the data, the runtime type of the data is String.
For instance, for a date value of 2024-02-25, I receive the string "2024-25-02".
Describe the solution you'd like
Instead, we should receive DateTime.
For instance, for a date value of 2024-02-25, I should receive the object DateTime(2024, 02, 25).
Describe alternatives you've considered
The alternative is to do nothing and let the consumer parse the date. This is how we have to do currently.
void main() async {
final data = await supabase.from('members').select('birthday');
for (final datum in data) {
final birthday = DateTime.parse(datum['birthday']); // Manually parsing the received string
// Do something with `birthday`...
}
}
- 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