falkben / movies_from_a_hat

MIT License
0 stars 0 forks source link

async db #7

Closed falkben closed 1 year ago

falkben commented 1 year ago

all seems to work, but still deciding if i want to go through the trouble of async here

falkben commented 1 year ago

while this seems to be working when running the endpoints, i had a bit of trouble creating tests. The Many-to-many relationship was causing problems when the api endpoints were returning data as the .genres seem to be evaluated outside the async context

falkben commented 1 year ago

For best compatibility with FastAPI users, it may be worth the switch