Want to check if there was a way to get the number of rows inserted when using the dbxUpsert in MariaDB. This would help tell the user about the count of rows where was inserted either via logs or via popups in case of data uploads. I tried the option returning=c("id") and like mentioned in the documentation, it did not work on MariaDB and instead failed with this error.
records <- dbx::dbxUpsert(
conn = con,
table = table_name,
records = data,
where_cols = c("vehicle", "wts"),
batch_size = 1000,
returning=c("id")
)
Error in selectOrExecute(conn, sql, batch, returning = returning) :
returning is only supported with Postgres
Thank you for this super handy library!
Want to check if there was a way to get the number of rows inserted when using the
dbxUpsert
in MariaDB. This would help tell the user about the count of rows where was inserted either via logs or via popups in case of data uploads. I tried the optionreturning=c("id")
and like mentioned in the documentation, it did not work on MariaDB and instead failed with this error.Documentation