MCPcopy
hub / github.com/tortoise/tortoise-orm / DBUrlConfig

Class DBUrlConfig

tortoise/config.py:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10@dataclass(frozen=True)
11class DBUrlConfig:
12 url: str
13
14 def __post_init__(self) -> None:
15 if not isinstance(self.url, str) or not self.url:
16 raise ConfigurationError("DBUrlConfig.url must be a non-empty string")
17
18 def to_config(self) -> str:
19 return self.url
20
21
22@dataclass(frozen=True)

Callers 3

config.pyFile · 0.90
from_dictMethod · 0.85

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…