【发布时间】:2021-03-04 02:05:39
【问题描述】:
asyncpg 中的 fetchval 是否对 sql 注入安全?
async def get_user_id_by_bot_id(self, bot_id):
record: Record = await self.pool.fetchval(self.GET_USER_ID_BY_BOT_ID, (bot_id))
print(record)
return record
感谢您的回答。
【问题讨论】:
标签: python postgresql asyncpg