Merge pull request #870 from YanSte/back-age-2

back age
This commit is contained in:
Yannick Stephan 2025-02-19 15:10:25 +01:00 committed by GitHub
commit 0b795aa183
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,6 +173,11 @@ class PostgreSQLDB:
):
try:
async with self.pool.acquire() as connection: # type: ignore
if with_age and graph_name:
await self.configure_age(connection, graph_name) # type: ignore
elif with_age and not graph_name:
raise ValueError("Graph name is required when with_age is True")
if data is None:
await connection.execute(sql) # type: ignore
else: