mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
add how to feed db to README.md
This commit is contained in:
15
README.md
15
README.md
@@ -33,10 +33,13 @@ test Run project tests
|
|||||||
up Run project with compose
|
up Run project with compose
|
||||||
```
|
```
|
||||||
|
|
||||||
Hope you enjoy it.
|
|
||||||
|
|
||||||
It tooks me a while to find nice data set. Hope shkezz as example will be able to cover
|
### How to feed database
|
||||||
first part with read only declarative base and all type of selects :)
|
|
||||||
I took data set form https://github.com/catherinedevlin/opensourceshakespeare
|
It took me a while to find nice data set. Hope works of Shakespeare as example will be able to cover
|
||||||
Next generated declarative base with https://github.com/agronholm/sqlacodegen
|
first part with read only declarative base configuration and all type of funny selects :)
|
||||||
And after soem twiking i get desired result
|
Data set is coming form https://github.com/catherinedevlin/opensourceshakespeare
|
||||||
|
Next models were generated with https://github.com/agronholm/sqlacodegen
|
||||||
|
And after some tweaking I got desired result
|
||||||
|
|
||||||
|
Hope you enjoy it.
|
||||||
Reference in New Issue
Block a user