Skip to content
New issue

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

增加 upsert 支持 #3

Open
freedomkk-qfeng opened this issue Nov 21, 2023 · 0 comments
Open

增加 upsert 支持 #3

freedomkk-qfeng opened this issue Nov 21, 2023 · 0 comments

Comments

@freedomkk-qfeng
Copy link
Member

使用 sqlalchemy 所支持 upsert 方案,在其支持的数据库上通过 upsert 方式更新数据。

可能需要先判断 db 的类型。

https://docs.sqlalchemy.org/en/20/orm/queryguide/dml.html#orm-queryguide-upsert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant