使用node.js中的trireme-jdbc模块在Openedge DB中批量插入

我有一个场景,我只想在一次执行中插入超过100条logging。 我正在Node.JS中开发我的应用程序,并使用trireme-jdbc作为jdbc连接来打开数据库,并且它不允许在单个执行中执行多个logging,要么传递多个值的数组,要么传递多个插入查询,并用分号分隔值。 由于这个问题,我在循环中执行这个操作,但是它打破了超过20-25的logging的连接。 另外它看起来像trireme-jdbc db.close()真的closures数据库会话或不。 有没有其他的方式来closures数据库连接或会话在trireme-jdbc中。 下面是我用来做这个的样本。

在执行下面的代码后,在Node中引发SQL语法错误,但使用sql developer或Squirrel Client工具成功插入。 我正在使用的数据库是Openedge 11.6。 看起来每个执行都自动创build一个新的连接。 任何帮助表示赞赏。

[DataDirect][OpenEdge JDBC Driver][OpenEdge] Syntax error in SQL statement at or about "; INSERT INTO po_log (order_num, line_id" (10713) [DataDirect][OpenEdge JDBC Driver][OpenEdge] Syntax error in SQL statement at or about "; INSERT INTO po_log (order_num, line_id" (10713) 

Belows是我在这个操作中使用的代码 –

 if(filePlant == 'RY1') { query = 'INSERT INTO po_log (order_num, line_id, line_release) VALUES (' + 4370024 + ' , ' + 1 + ' , ' + 2 + ' )' + ' ; ' + 'INSERT INTO po_log (order_num, line_id, line_release) VALUES (' + 4370024 + ' , ' + 1 + ' , ' + 2 + ' )' dbRY1.execute(query, [], function(err, result, rows) { loggy.info('ASN Inserted DB Error for RY1--->'+err); if(err == undefined){ loggy.info('ACK Inserted for RY1--->'); }else{ loggy.info('ACK Inserting Error occurred for RY1--->'); } }); dbRY1.close(); }