zlacker

[parent] [thread] 3 comments
1. sppras+(OP)[view] [source] 2023-09-25 20:05:52
SQLAlchemy is an extra abstraction blocking your path here. While you probably should still use an ORM for your regular relation queries, you are not gaining anything significant by trying to use SQLAlchemy for implementing a queue backend. You can write raw SQL with psycopg2 (which is already a dependency in your project thanks to SQLAlchemy), and wrap these raw queue management SQL in a nice little Python module which you can later reuse for other applications as well.
replies(1): >>mixmas+3q
2. mixmas+3q[view] [source] 2023-09-25 22:12:53
>>sppras+(OP)
You can write raw SQL with SA, while keeping the other nice features it has.
replies(1): >>hmhmhm+QB
◧◩
3. hmhmhm+QB[view] [source] [discussion] 2023-09-25 23:25:45
>>mixmas+3q
Without being rude, what are the nice features? I've worked with it a bit and constantly found myself wishing it was just SQL whenever I've bumped into it
replies(1): >>mixmas+DQ
◧◩◪
4. mixmas+DQ[view] [source] [discussion] 2023-09-26 01:16:05
>>hmhmhm+QB
API/engine/connection/pooling abstraction, serialization, type checking, etc.

Look up the features of Core if interested. No ORM needed, as it says in the docs.

[go to top]