Readme: sql/db -> sql(/init)
This commit is contained in:
parent
7c7e973a83
commit
4e3237b24e
1 changed files with 3 additions and 2 deletions
|
@ -75,7 +75,7 @@ Make commands:
|
||||||
shouldn't be used manually, see
|
shouldn't be used manually, see
|
||||||
Helper Functions -> respond.with_tmpl
|
Helper Functions -> respond.with_tmpl
|
||||||
below
|
below
|
||||||
#### The database config loaded by `sql/db.py`:
|
#### The database config loaded by `sql/__init__.py`:
|
||||||
- `sql_settings` (pydantic.BaseSettings):
|
- `sql_settings` (pydantic.BaseSettings):
|
||||||
- `db_host`
|
- `db_host`
|
||||||
- `db_port`
|
- `db_port`
|
||||||
|
@ -267,7 +267,8 @@ about the `request` argument.
|
||||||
|
|
||||||
**Returns:** StarletteForm instance
|
**Returns:** StarletteForm instance
|
||||||
|
|
||||||
### `sql/db.py`
|
### `sql/__init__.py`
|
||||||
|
Import: `from . import sql`
|
||||||
|
|
||||||
#### `async get_db()`
|
#### `async get_db()`
|
||||||
FastAPI dependency returning database Session object.
|
FastAPI dependency returning database Session object.
|
||||||
|
|
Loading…
Add table
Reference in a new issue