PynamoDB icon indicating copy to clipboard operation
PynamoDB copied to clipboard

Can it be used with SQLAlchemy?

Open SimFG opened this issue 2 years ago • 2 comments

Searched for related documents, but didn't seem to find relevant content. Looking forward to reply, thank you very much 🙏

SimFG avatar May 31 '23 10:05 SimFG

first i'd like to ask how you intend to use sqlalchemy and pynamodb together as you already know, the pynamodb is the interface to Amazon's Dynamodb and sqlalchmey is orm for rdb if you want to store data simultaneously rdb and dynamodb you can make tx manager using rdb's tx and dynamodb's tx

jaeyoung0509 avatar Sep 22 '23 07:09 jaeyoung0509

These are fundamentally different concepts - one doesn't use SQLAlchemy for DynamoDB.

Instead, you'd construct Model instances in either SQLAlchemy and PynamoDB for the desired underlying data objects, and have your code call each when it needs them.

miketheman avatar Sep 23 '23 00:09 miketheman