weiyehan

Results 2 comments of weiyehan

替换Archery-master\sql\engines目录下的mongo.py和tests.py解决了 [tests.txt](https://github.com/user-attachments/files/18249334/tests.txt) [mongo.txt](https://github.com/user-attachments/files/18249338/mongo.txt) 是的,这个错误是因为 PyMongo 4.x 版本移除了 authenticate() 方法。在 PyMongo 4.x 中,认证需要在创建连接时通过 MongoClient 的参数来完成。让我们修改代码来支持新版本的认证方式。主要修改: 移除了旧的 authenticate() 方法调用 将认证信息直接通过 MongoClient 的参数传入: username/password: 用户名和密码 authSource: 认证数据库,默认使用 admin authMechanism: 显式指定使用 SCRAM-SHA-1 认证机制 添加了连接超时参数...