Skip to content

Commit 087655c

Browse files
authored
Merge pull request #840 from tisnik/lcore-973-sqlite-cache-description
LCORE-973: SQLite cache description
2 parents 3b319b8 + 4946b94 commit 087655c

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

docs/config.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ <h2 id="sqlitedatabaseconfiguration">SQLiteDatabaseConfiguration</h2>
910910
<tr class="odd">
911911
<td>db_path</td>
912912
<td>string</td>
913-
<td></td>
913+
<td>Path to file where SQLite database is stored</td>
914914
</tr>
915915
</tbody>
916916
</table>

docs/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ SQLite database configuration.
336336

337337
| Field | Type | Description |
338338
|-------|------|-------------|
339-
| db_path | string | |
339+
| db_path | string | Path to file where SQLite database is stored |
340340

341341

342342
## ServiceConfiguration

docs/config.png

1 Byte
Loading

docs/config.puml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class "RHIdentityConfiguration" as src.models.config.RHIdentityConfiguration {
158158
required_entitlements : Optional[list[str]]
159159
}
160160
class "SQLiteDatabaseConfiguration" as src.models.config.SQLiteDatabaseConfiguration {
161-
db_path : str
161+
db_path : Optional[str]
162162
}
163163
class "ServiceConfiguration" as src.models.config.ServiceConfiguration {
164164
access_log : bool

docs/config.svg

Lines changed: 2 additions & 2 deletions
Loading

src/models/config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ def check_cors_configuration(self) -> Self:
8989
class SQLiteDatabaseConfiguration(ConfigurationBase):
9090
"""SQLite database configuration."""
9191

92-
db_path: str
92+
db_path: str = Field(
93+
...,
94+
title="DB path",
95+
description="Path to file where SQLite database is stored",
96+
)
9397

9498

9599
class InMemoryCacheConfig(ConfigurationBase):

0 commit comments

Comments
 (0)