This commit is contained in:
Yannick Stephan
2025-02-19 15:09:41 +01:00
parent 1e3fa84c2e
commit ad07f22cc8

View File

@@ -173,6 +173,11 @@ class PostgreSQLDB:
): ):
try: try:
async with self.pool.acquire() as connection: # type: ignore 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: if data is None:
await connection.execute(sql) # type: ignore await connection.execute(sql) # type: ignore
else: else: