- Created config directory with settings.py, __init__.py, and settings.yaml - Implemented SqlServerConfig and DatabaseConfig classes for SQL Server connections - Added Settings class with database_url property for SQLAlchemy URL construction - Uses parse_yaml_raw_as for UTF-8 safe YAML loading on Windows - Configuration validated successfully via import test Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
11 lines
233 B
YAML
11 lines
233 B
YAML
# 数据库配置
|
|
database:
|
|
sql_server:
|
|
host: 192.168.110.114
|
|
port: 1433
|
|
database: CompanyDB
|
|
username: peng
|
|
password: Cqbld123456.
|
|
driver: "{ODBC Driver 18 for SQL Server}"
|
|
trust_server_certificate: yes
|