You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It would be nice to have an upsert function.
Describe the solution you'd like
Here is how I currently solved it in gdscript.
NOTE: it would make sense to replace the ìd_col parameter by a conditions parameter to be more in line with other QOL functions like select_rows and update_rows
EDIT: I just noticed the code above does not account for the fact that id_col may already be escaped or that the corresponding property in row_datamay be escaped. That would be something to keep in mind.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It would be nice to have an upsert function.
Describe the solution you'd like
Here is how I currently solved it in gdscript.
NOTE: it would make sense to replace the
ìd_col
parameter by aconditions
parameter to be more in line with other QOL functions likeselect_rows
andupdate_rows
EDIT: I just noticed the code above does not account for the fact that
id_col
may already be escaped or that the corresponding property inrow_data
may be escaped. That would be something to keep in mind.The text was updated successfully, but these errors were encountered: