WillAyd commented on issue #2177:
URL: https://github.com/apache/arrow-adbc/issues/2177#issuecomment-2364683774

   > In the meantime, you should be able to use a parameterized `INSERT` as a 
workaround (i.e., `INSERT INTO some_table VALUES (?)`. (I forget exactly how to 
access the bulk bind via dbapi/ADBC in Python)
   
   I think you are looking for something like this:
   
   ```python
   tbl = pa.Table(...)
   with adbc_driver_postgresql.dbapi(conn_args) as conn, conn.cursor() as cur:
       cur.adbc_prepare("INSERT INTO some_table VALUES (?)")
       cur.executemany("INSERT INTO some_table VALUES (?)", tbl)
       conn.commit()
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to