From 4e3237b24e3bfcc3d52a2899088a6c9fe81150d4 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 3 Mar 2023 14:34:28 +0400 Subject: [PATCH] Readme: sql/db -> sql(/init) --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7939cc1..db042b9 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ Make commands: shouldn't be used manually, see Helper Functions -> respond.with_tmpl below -#### The database config loaded by `sql/db.py`: +#### The database config loaded by `sql/__init__.py`: - `sql_settings` (pydantic.BaseSettings): - `db_host` - `db_port` @@ -267,7 +267,8 @@ about the `request` argument. **Returns:** StarletteForm instance -### `sql/db.py` +### `sql/__init__.py` +Import: `from . import sql` #### `async get_db()` FastAPI dependency returning database Session object.