fix(datasource): Fix datasource resource error

This commit is contained in:
Fangyin Cheng 2025-03-04 21:05:33 +08:00
parent 948a93be32
commit 6acfb162e4
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ class DBResource(Resource[P], Generic[P]):
dialect: Optional[str] = None,
executor: Optional[Executor] = None,
prompt_template: str = _DEFAULT_PROMPT_TEMPLATE,
**kwargs,
):
"""Initialize the DB resource."""
self._name = name

View File

@ -66,7 +66,7 @@ def _generate_key_from_password(
algorithm=hashes.SHA256(),
length=32,
salt=salt,
iterations=100000,
iterations=800000,
)
key = base64.urlsafe_b64encode(kdf.derive(password))
return key, salt