forked from Github-Mirrors/canaille
17 lines
339 B
Python
17 lines
339 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class SQLSettings(BaseModel):
|
|
"""Settings related to the SQL backend.
|
|
|
|
Belong in the ``CANAILLE_SQL`` namespace.
|
|
"""
|
|
|
|
DATABASE_URI: str
|
|
"""The SQL server URI.
|
|
For example:
|
|
|
|
..code-block:: toml
|
|
|
|
DATABASE_URI = "postgresql://user:password@localhost/database_name"
|
|
"""
|