Add app/crud.py
This commit is contained in:
parent
7a2d2daa55
commit
9a6418a9b6
1 changed files with 8 additions and 0 deletions
8
app/crud.py
Normal file
8
app/crud.py
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
from sqlalchemy.orm import Session
|
||||||
|
from app import models
|
||||||
|
|
||||||
|
def get_customers(db: Session):
|
||||||
|
return db.query(models.Customer).all()
|
||||||
|
|
||||||
|
def get_accounts(db: Session):
|
||||||
|
return db.query(models.Account).all()
|
||||||
Loading…
Reference in a new issue