Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add multiple values to a single insert #213

wants to merge 1 commit into


None yet
5 participants

denyago commented Oct 21, 2013

Makes possible to put a set of records in a single insert:

INSERT INTO "users" ("id", "name") VALUES (1, 'aaron'), (2, 'joe')

gmile commented Nov 2, 2013


tamird commented Sep 16, 2014

LGTM. should this go into the master branch?


matthewd commented Sep 16, 2014

It's certainly not going into 3-0-stable.

@matthewd matthewd closed this Sep 16, 2014

denyago commented Sep 16, 2014

Is there anything I can improve in order to have this functionality in Arel?

tamird commented Sep 16, 2014

open a new PR against master

I believe this will be useful for generating "useful" insert statements through to_sql (Inserting one by one is not practical).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment