mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-07 20:33:01 +08:00
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
|