SeaQL / sea-query

🔱 A dynamic SQL query builder for MySQL, Postgres and SQLite
https://www.sea-ql.org
Other
1.11k stars 180 forks source link

postgres: bulk insert API with UNNEST and ARRAYs #724

Open gitmalong opened 8 months ago

gitmalong commented 8 months ago

Relates to:

Basically I would like to let SeaQuery build a Postgres bulk insert query in the following format:

insert into table(a, b) 
values(1, unnest(array[1, 2, 3]))

Benefits:

gitmalong commented 8 months ago

Just filed a sponsorship to support this.

tyt2y3 commented 8 months ago

Thank you for the sponsor. I'd put this on my stack.

gitmalong commented 3 months ago

Hi. Any updates on this?

tyt2y3 commented 3 months ago

Sorry for the delay. Yes, we have some time now as 1.0 is concluding. I have some plan regarding OLAP, including bulk data inserts and some extensions to TimescaleDB