stra...@gmail.com
unread,Jun 24, 2016, 12:35:47 PM6/24/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Erlang epgsql Postgres driver use and development
Is there a way to do bulk inserts with epgsqli:equery/3? I'd like to insert sets of records into a single table in the database. Looking at the readme I see it's possible to do batch execution of statements. I want to execute one statement with multiple sets of parameters. Is this possible? The query I want to execute looks something like this:
INSERT INTO table (col1, col2)
VALUES
(row, 1),
(row, 2);
I know I can do this with epgsql:squery/2, so if this isn't possible it won't be problematic. I'm just curious if this is supported.
Thank you,
Trevor