Database Operations

Instructions on how to write database queries with SQLAlchemy.

ComeOnOliver Updated 61 repo stars

File contents

When performing database operations using SQLAlchemy, follow these guidelines to ensure efficient and maintainable code:

  • Avoid for-loops. Instead always prefer bulk operations using SQLAlchemy's built-in methods or use SQL joins to get related data in a single query.
  • Database operations should be contained in repository classes

ComeOnOliver/skillshub/tree/main/skills/aiskillstore/marketplace/crossbill-highlights/database-operations commit 4ffee1921a

Frequently asked questions

npx skillmds@latest add comeonoliver/database-operations-2