mirror of https://github.com/langgenius/dify.git
Co-authored-by: root <root@thinkpad-pc.localdomain> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
b38f195a0d
commit
7566d90dfe
|
|
@ -109,8 +109,19 @@ class OracleVector(BaseVector):
|
|||
)
|
||||
|
||||
def _get_connection(self) -> Connection:
|
||||
connection = oracledb.connect(user=self.config.user, password=self.config.password, dsn=self.config.dsn)
|
||||
return connection
|
||||
if self.config.is_autonomous:
|
||||
connection = oracledb.connect(
|
||||
user=self.config.user,
|
||||
password=self.config.password,
|
||||
dsn=self.config.dsn,
|
||||
config_dir=self.config.config_dir,
|
||||
wallet_location=self.config.wallet_location,
|
||||
wallet_password=self.config.wallet_password,
|
||||
)
|
||||
return connection
|
||||
else:
|
||||
connection = oracledb.connect(user=self.config.user, password=self.config.password, dsn=self.config.dsn)
|
||||
return connection
|
||||
|
||||
def _create_connection_pool(self, config: OracleVectorConfig):
|
||||
pool_params = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue