Fork me on GitHub
#onyx
<
2018-01-18
>
niamu20:01:48

I’ve been attempting to use the onyx-sql plugin with the task upsert-rows on a Postgres database and I don’t think it supports it.

niamu20:01:29

I’m not a database expert, so maybe there’s something I’m missing, but from what I understand, Postgres requires some extra “ON CONFLICT” portions in the query to support upserting.

niamu20:01:58

Seems like maybe this has never been addressed in the onyx-sql plugin.

lucasbradstreet20:01:39

Ah, that was recent user contributed functionality, so we won’t be able to provide much in the way of information there.

lucasbradstreet20:01:52

If you can find a way to make it support both (possibly with a flag), that’d be great.

niamu20:01:40

My current plan was checking for the subprotocol of the sql-settings and if it is “postgresql” make the changes to the query necessary.

lucasbradstreet20:01:13

That’d be fine 🙂