ramp_database.tools.user
.get_user_by_name¶
-
ramp_database.tools.user.
get_user_by_name
(session, name)¶ Get a user by his/her name.
- Parameters
- session
sqlalchemy.orm.Session
The session to directly perform the operation on the database.
- namestr or None
The name of the user. If None, all users will be queried.
- session
- Returns
- user
ramp_database.model.User
or list oframp_database.model.User
The queried user.
- user