supabase / postgres-meta

A RESTful API for managing your Postgres. Fetch tables, add roles, and run queries
https://supabase.com
Apache License 2.0
941 stars 126 forks source link

Python Language Generation #808

Open ryanpeach opened 1 month ago

ryanpeach commented 1 month ago

What kind of change does this PR introduce?

Feature

What is the current behavior?

Does not generate python,

What is the new behavior?

Practicing TDD, designing tests first and asking the community for feedback.

Additional Comments

I'd like everyones feedback on this format for the python types. I'm using pydantic and mimicing the go structure, since its closest to python dataclasses (basically structs).

ryanpeach commented 1 month ago

I'm not really sure what a lot of these things other than "Tables" are. Materialized Views? Why are there different types for different operations? CompositeTypes?

Anyway, if we agree on the TDD output, I'll make it work 🙂

ryanpeach commented 1 month ago

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

lwih commented 4 weeks ago

Man I'm looking forward to that :)

yangcheng commented 2 weeks ago

happy to be early tester!

ryanpeach commented 1 week ago

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'll get back to working on supabase.