mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 19:36:43 +08:00
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
16 lines
266 B
Python
16 lines
266 B
Python
from ..db_model import Model
|
|
|
|
|
|
class NBESFVerMatchErr(Exception): ...
|
|
|
|
|
|
class NBESFParseErr(Exception): ...
|
|
|
|
|
|
def row2dict(row: Model) -> dict:
|
|
d = {}
|
|
for column in row.__table__.columns:
|
|
d[column.name] = str(getattr(row, column.name))
|
|
|
|
return d
|