lamindb.dev.db.ExecStmt#
- class lamindb.dev.db.ExecStmt(*, tables, stmt, session=None)#
Bases:
object
Executable statement.
Methods
- all()#
Return all result as a list.
- df()#
Return result as a DataFrame.
The DataFrame will have MultiIndex columns if multiple entities are passed.
- first()#
Return the first result of select or None if no result are found.
- one()#
Return exactly one result or raise an exception.
- one_or_none()#
Return at most one result or raise an exception.