MCPcopy Create free account
hub / github.com/MemTensor/MemOS / _get_session

Method _get_session

src/memos/mem_user/user_manager.py:126–128  ·  view source on GitHub ↗

Get a database session.

(self)

Source from the content-addressed store, hash-verified

124 logger.info(f"UserManager initialized with database at {db_path}")
125
126 def _get_session(self) -> Session:
127 """Get a database session."""
128 return self.SessionLocal()
129
130 def _init_root_user(self, user_id: str) -> None:
131 """Initialize the root user if no users exist."""

Callers 15

_init_root_userMethod · 0.95
create_userMethod · 0.95
get_userMethod · 0.95
get_user_by_nameMethod · 0.95
list_usersMethod · 0.95
create_cubeMethod · 0.95
get_cubeMethod · 0.95
get_user_cubesMethod · 0.95
add_user_to_cubeMethod · 0.95
remove_user_from_cubeMethod · 0.95
delete_userMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected