docs(mcp): coherence union colonnes dans le design (#114)
This commit is contained in:
@@ -48,9 +48,10 @@ sous-ensemble à maintenir à la main.
|
|||||||
|
|
||||||
### `src/mcp/queries.py`
|
### `src/mcp/queries.py`
|
||||||
|
|
||||||
- Construire à l'import :
|
- Construire à l'import (cf. section « Source de vérité ») :
|
||||||
```python
|
```python
|
||||||
SELECTABLE_COLUMNS = tuple(name for name in DATA_SCHEMA if name in duckdb_schema)
|
_filtrables = tuple(name for name in DATA_SCHEMA if name in duckdb_schema)
|
||||||
|
SELECTABLE_COLUMNS = tuple(dict.fromkeys((*MARCHES_COLUMNS, *_filtrables)))
|
||||||
ColonneMarche = Literal[SELECTABLE_COLUMNS]
|
ColonneMarche = Literal[SELECTABLE_COLUMNS]
|
||||||
```
|
```
|
||||||
- `search_marches(..., colonnes: list[str] | None = None)` :
|
- `search_marches(..., colonnes: list[str] | None = None)` :
|
||||||
|
|||||||
Reference in New Issue
Block a user