-
请问在一个会话中依赖注入的session是同一个吗?session commit后需不需要手动close() |
Beta Was this translation helpful? Give feedback.
Answered by
he0119
Jul 23, 2023
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
he0119
-
好的谢谢
he0119 ***@***.***>于2023年7月23日 周日22:28写道:
… 是同一个(会缓存),并且不需要手动关闭,会在 matcher 结束后自动关闭。
—
Reply to this email directly, view it on GitHub
<#157 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APK6YJ43ROHVFNTOCQLOITDXRUYIHANCNFSM6AAAAAA2UQW6WI>
.
You are receiving this because you authored the thread.Message ID:
<he0119/nonebot-plugin-datastore/repo-discussions/157/comments/6521413@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
是同一个(会缓存),并且不需要手动关闭,会在 matcher 结束后自动关闭。
https://nonebot.dev/docs/advanced/dependency#%E4%BE%9D%E8%B5%96%E7%BC%93%E5%AD%98
https://nonebot.dev/docs/advanced/dependency#%E7%94%9F%E6%88%90%E5%99%A8%E4%BD%9C%E4%B8%BA%E4%BE%9D%E8%B5%96