perf: oracle, mongodb proxy native client method only vendor is jumpserver

This commit is contained in:
Bai
2026-05-13 18:23:12 +08:00
parent d2db901e3c
commit 57eee6f701

View File

@@ -50,12 +50,15 @@ class NativeClient(TextChoices):
Protocol.mysql: [cls.db_client, cls.db_guide],
Protocol.mariadb: [cls.db_client, cls.db_guide],
Protocol.redis: [cls.db_client, cls.db_guide],
Protocol.mongodb: [cls.db_client, cls.db_guide],
Protocol.oracle: [cls.db_client, cls.db_guide],
Protocol.postgresql: [cls.db_client, cls.db_guide],
Protocol.sqlserver: [cls.db_client, cls.db_guide],
Protocol.vnc: [cls.vnc_client, cls.vnc_guide],
}
if settings.VENDOR.lower() == 'jumpserver':
clients.update({
Protocol.mongodb: [cls.db_client, cls.db_guide],
Protocol.oracle: [cls.db_client, cls.db_guide],
})
return clients
@classmethod