Skip to content

Commit

Permalink
Redis添加用户名支持
Browse files Browse the repository at this point in the history
  • Loading branch information
王飞 authored and LeoQuote committed Apr 11, 2024
1 parent 57024f8 commit bd54ec9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/engines/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def get_connection(self, db_name=None):
return redis.cluster.RedisCluster(
host=self.host,
port=self.port,
username=self.user,
password=self.password or None,
encoding_errors="ignore",
decode_responses=True,
Expand All @@ -40,6 +41,7 @@ def get_connection(self, db_name=None):
host=self.host,
port=self.port,
db=db_name,
username=self.user,
password=self.password or None,
encoding_errors="ignore",
decode_responses=True,
Expand Down

0 comments on commit bd54ec9

Please sign in to comment.