Readme: sql/db -> sql(/init)

This commit is contained in:
DarkCat09 2023-03-03 14:34:28 +04:00
parent 7c7e973a83
commit 4e3237b24e

View file

@ -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.