__init__.py 842 B

1234567891011121314151617181920212223242526272829
  1. """
  2. 数据库封装模块
  3. - connection: 共享数据库连接
  4. - schedule: 定时任务相关(demand_content、demand_find_task)
  5. - store_results: 推荐结果写入(demand_find_author、demand_find_content_result)
  6. """
  7. from .connection import get_connection
  8. from .open_aigc_pattern_connection import get_open_aigc_pattern_connection
  9. from .schedule import (
  10. get_next_unprocessed_demand,
  11. create_task_record,
  12. update_task_status,
  13. update_task_on_complete,
  14. )
  15. from .store_results import upsert_good_authors, insert_contents, update_content_plan_ids
  16. __all__ = [
  17. "get_connection",
  18. "get_open_aigc_pattern_connection",
  19. "get_next_unprocessed_demand",
  20. "create_task_record",
  21. "update_task_status",
  22. "update_task_on_complete",
  23. "upsert_good_authors",
  24. "insert_contents",
  25. "update_content_plan_ids",
  26. ]