We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在不确定的Collection中能不能添加事务方法尽心事务操作
The text was updated successfully, but these errors were encountered:
现在的事务都是在cli中,那在Database.Collection怎么进行事务操作,或者什么时候可以添加该功能
Sorry, something went wrong.
Would you make a example how to use it?
+1,事务只能在client里面使用,很多需求都是需要在集合中操作的。
是否可以考虑像mongo-go-driver一样暴露一个接口提供创建database的client能力:
mongo-go-driver
https://github.com/mongodb/mongo-go-driver/blob/4f4f715bc4bbd03cb2f4af6400993271f727d4b0/mongo/database.go#L103-L106
https://github.com/mongodb/mongo-go-driver/blob/4f4f715bc4bbd03cb2f4af6400993271f727d4b0/mongo/collection.go#L180-L183
No branches or pull requests
在不确定的Collection中能不能添加事务方法尽心事务操作
The text was updated successfully, but these errors were encountered: