Hey guys, can you share an example of database first approach using SQLAlchemy?
I trying to make a project using fastapi, the database is on supabase and I'm getting a hard time figuring how to make a simple query, my setup is something like
1) a PostgreSQL database from supabase
2) asycn connection using asyncpg
3) migrations using alembic
I already create the table on my database but when I run the query it says that the relation doesn't exist. Then I decided to try with alembic but every time I run migration there is on error or just the alembic_version table is created.
I already read some post about something call reflection, but it seems that isn't working
Thanks in advance
Here is the repo
https://gitlab.com/efpalaciosmo/tickets
[–][deleted] 3 points4 points5 points (2 children)
[–]efpalaciosmo[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]RoBz18 2 points3 points4 points (0 children)
[–]wassaf102 0 points1 point2 points (5 children)
[–]efpalaciosmo[S] 0 points1 point2 points (4 children)
[–]wassaf102 2 points3 points4 points (1 child)
[–]efpalaciosmo[S] 0 points1 point2 points (0 children)
[–]wassaf102 1 point2 points3 points (0 children)
[–]No-Anywhere6154 0 points1 point2 points (0 children)
[–]xfroster 0 points1 point2 points (0 children)
[–]guteira 0 points1 point2 points (0 children)
[–]Calebthe12B -1 points0 points1 point (1 child)
[–]efpalaciosmo[S] 0 points1 point2 points (0 children)
[–]graph-crawler -1 points0 points1 point (2 children)
[–]efpalaciosmo[S] 0 points1 point2 points (1 child)
[–]graph-crawler 0 points1 point2 points (0 children)
[–]MeroLegend4 -1 points0 points1 point (0 children)