AI ニジカ綜合
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
656 B

  1. from __future__ import annotations
  2. import os
  3. from typing import TypedDict
  4. CONFIG: dict[str, DbConfig] = { 'mysql': { 'driver': 'mysql',
  5. 'host': 'localhost',
  6. 'database': 'nizika_ai',
  7. 'user': os.environ['MYSQL_USER'],
  8. 'password': os.environ['MYSQL_PASS'],
  9. 'prefix': '' } }
  10. class DbConfig (TypedDict):
  11. driver: str
  12. host: str
  13. database: str
  14. user: str
  15. password: str
  16. prefix: str