mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-18 01:37:15 +00:00
minimize change
This commit is contained in:
parent
ed78090b8e
commit
06d02bf3de
23 changed files with 161 additions and 197 deletions
|
|
@ -126,9 +126,3 @@ class SqlStore(Protocol):
|
|||
:param nullable: Whether the column should be nullable (default: True)
|
||||
"""
|
||||
pass
|
||||
|
||||
async def close(self) -> None:
|
||||
"""
|
||||
Close any persistent database connections.
|
||||
"""
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -197,10 +197,6 @@ class AuthorizedSqlStore:
|
|||
"""Delete rows with automatic access control filtering."""
|
||||
await self.sql_store.delete(table, where)
|
||||
|
||||
async def close(self) -> None:
|
||||
"""Close the underlying SQL store connection."""
|
||||
await self.sql_store.close()
|
||||
|
||||
def _build_access_control_where_clause(self, policy: list[AccessRule]) -> str:
|
||||
"""Build SQL WHERE clause for access control filtering.
|
||||
|
||||
|
|
|
|||
|
|
@ -311,11 +311,3 @@ class SqlAlchemySqlStoreImpl(SqlStore):
|
|||
# The table creation will handle adding the column
|
||||
logger.error(f"Error adding column {column_name} to table {table}: {e}")
|
||||
pass
|
||||
|
||||
async def close(self) -> None:
|
||||
"""Close the database engine and all connections."""
|
||||
if hasattr(self, "async_session"):
|
||||
# Get the engine from the session maker
|
||||
engine = self.async_session.kw.get("bind")
|
||||
if engine:
|
||||
await engine.dispose()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue