Support for native upserts in MySQL/MariaDB

Open
#256 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
mariadb, mysql, ruby
Domain
databases

Research direction

No repository files or tests are named. Start by reading the PostgreSQL upsert work referenced in #65 and #66, then inspect the MySQL/MariaDB adapter and Sequel's #on_duplicate_key_update behavior. Done means an upsert command uses native MySQL/MariaDB features consistently with the PostgreSQL precedent.

Written by the indexing model from the issue text.

Description

feature help wanted mysql

It would be really great to have an upsert command that uses native features of MySQL/MariaDB. Sequel implements this with #on_duplicate_key_update.

Something like what PostgreSQL got with #65 & #66.

Dominant language
Ruby
Stars
220
Forks
97
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rom-rb/rom-sql

All issues in rom-rb/rom-sql

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.