[CONJS-274] permit disabling BULK insert for one batch Created: 2023-12-05  Updated: 2023-12-05  Resolved: 2023-12-05

Status: Closed
Project: MariaDB Connector/node.js
Component/s: batch
Affects Version/s: None
Fix Version/s: 3.2.3

Type: Bug Priority: Minor
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Actually, batch can either set bulk at the connection level, and cannot be disabled for a specific batch. This task is to permit using command like :

        await conn.batch({ bulk: false, sql: 'INSERT INTO TABLE VALUES (?,?)' }, [
          [1, 'john'],
          [2, 'jack']
        ]);


Generated at Thu Feb 08 03:24:01 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.