Skip to content

[BUG] 无法自定义MongoDB主机名 #1

Description

@pooneyy

def __init__(self,
host: str = 'localhost',
port: int = 27017,
db_name: str = 'my_app_db',

此处是硬编码的数据库主机名 host: str = 'localhost',

主机名、端口号、数据库名建议由配置文件定义

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions