我正在将 Rust 应用程序从 Postgres 迁移到 Sqlite。但是我遇到了 upsert 的问题
以下代码
diesel::insert_into(dialogs_table)
.values(dialog)
.on_conflict(user_id_column)
给我这个:
error[E0599]: no method named `on_conflict` found for struct InsertStatement in the current scope
我觉得这很奇怪,因为它适用于 Postgres。在这里使用 upsert 的可能解决方案是什么?