MCPcopy Create free account
hub / github.com/chatbi/chatbi / session

Method session

chatbi/database/database.py:227–248  ·  view source on GitHub ↗

Context manager for SQLAlchemy sessions. Yields: SQLAlchemy session with automatic commit/rollback Example: ```python with postgres_db.session() as session: users = session.query(User).all() ```

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

check_healthMethod · 0.95
get_db_sessionFunction · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected