Ryan Peach

Results 131 comments of Ryan Peach

I'd also like to do this again, but for rust.

I've dropped my work on it atm if someone wants to take it the final mile, or wants to answer my questions on this pr, that would be great! Eventually...

I need someone to check the tests. I know I’ve not covered all cases, but I don’t understand some of the test cases in the other code generators. Basically I...

@grdsdev I did see that, but I think we should go for language availability before we go for complexity. That's why I emulated the go structs. Maybe all that can...

Either way, I think the best solution is this: 1. Create a canonical "schema" for the database in TDD. Release a readme describing all the system features it describes. 2....

@soedirgo you aren't convinced that having structs which match your tables, and having those structs autogenerated, is useful? I'm sorry but I can't even begin to see the logic in...

I'd just use pydantics deserialization and from dict capabilities after running a query, just to associate a type with the return and get data validation. Any future complexity addition would...

```python import PublicUsersSelect, PublicUsersInsert, PublicUsersUpdate from generated_table_classes import supabase # Select selected = [PublicUsersSelect(x) from x in supabase.table("users").select("*").execute().data] # Insert to_insert = PublicUsersInsert(name="foo", status="bar") inserted = [PublicUsersInsert(x) for x in...

From this exercise I think this DX is ideal: ```python import User, Users, UsersUpdate, UserInsert from generated_table_classes import supabase # Select selected = Users(supabase.table("users").select("*").execute().data) # Insert to_insert = UserInsert(name="foo", status="bar")...

From the above comment, adding these functions to each object would make the DX even better: ```python import User, Users, UsersUpdate, UserInsert from generated_table_classes # import supabase not needed #...