minos-python icon indicating copy to clipboard operation
minos-python copied to clipboard

Add `SqlAlchemySnapshotRepository`

Open garciparedes opened this issue 3 years ago • 0 comments

Here is an usage example:

snapshot = SqlAlchemySnapshotRepository.from_config(config)

session = await snapshot.session()
PriceTable = await snapshot.get_table(PriceEntity)
ProductTable = await snapshot.get_table(ProductEntity)

session.query(PriceTable).where(PriceTable.value > 234).join(ProductTable)

garciparedes avatar Mar 31 '22 15:03 garciparedes