From 4f995d530b5f3995c0203badc4d4aca19256d3fa Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Sun, 5 Nov 2023 04:24:44 +0300 Subject: [PATCH] update README.md --- sqlalchemy_study/README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sqlalchemy_study/README.md b/sqlalchemy_study/README.md index fcbb90f..2320c03 100644 --- a/sqlalchemy_study/README.md +++ b/sqlalchemy_study/README.md @@ -18,7 +18,7 @@ cp ./src/config/.env.template ./src/config/.env *Default is Postgres* -## Run without app in docker: +## Manual fill database with data: Requires python >= 3.11 and poetry >= 1.3.1 @@ -35,10 +35,10 @@ poetry shell - **run initial data:** ```bash cd src -python /data/fill_data.py +python data/fill_data.py ``` -## Run all in docker: +## Fill database with full docker script: **run for mysql:** ```bash @@ -50,6 +50,12 @@ docker compose -f docker-compose.postgres.yaml -f docker-compose.docker.yaml up ``` *Note: docker will start all migrations automatically. You don't need creation data step* +## Traininq queries: + +```bash +python data/get_data.py +``` + ## Help info: ### Create alembic migrations: