@@ -23,7 +23,7 @@ module.exports.title =
2323module . exports . displaySql = 'INSERT INTO testn.perfTestTextPipe VALUES (?) (into BLACKHOLE ENGINE)' ;
2424const iterations = 100 ;
2525module . exports . promise = true ;
26- module . exports . benchFct = function ( conn , deferred , connType ) {
26+ module . exports . benchFct = function ( conn , deferred , connType ) {
2727 const params = [ randomString ( 100 ) ] ;
2828 // console.log(connType.desc);
2929 if ( ! connType . desc . includes ( 'mariadb' ) ) {
@@ -32,14 +32,14 @@ module.exports.benchFct = function(conn, deferred, connType) {
3232 for ( let i = 0 ; i < iterations ; i ++ ) {
3333 conn
3434 . query ( sqlInsert , params )
35- . then ( rows => {
35+ . then ( ( rows ) => {
3636 // let val = Array.isArray(rows) ? rows[0] : rows;
3737 // assert.equal(1, val.info ? val.info.affectedRows : val.affectedRows);
3838 if ( ++ ended === iterations ) {
3939 deferred . resolve ( ) ;
4040 }
4141 } )
42- . catch ( err => {
42+ . catch ( ( err ) => {
4343 throw err ;
4444 } ) ;
4545 }
@@ -51,35 +51,35 @@ module.exports.benchFct = function(conn, deferred, connType) {
5151 }
5252 conn
5353 . batch ( sqlInsert , totalParams )
54- . then ( rows => {
54+ . then ( ( rows ) => {
5555 deferred . resolve ( ) ;
5656 } )
57- . catch ( err => {
57+ . catch ( ( err ) => {
5858 throw err ;
5959 } ) ;
6060 }
6161} ;
6262
63- module . exports . initFct = function ( conn ) {
63+ module . exports . initFct = function ( conn ) {
6464 return Promise . all ( [
6565 conn . query ( 'DROP TABLE IF EXISTS testn.perfTestTextPipe' ) ,
6666 conn . query ( "INSTALL SONAME 'ha_blackhole'" ) ,
6767 conn . query ( sqlTable + " ENGINE = BLACKHOLE COLLATE='utf8mb4_unicode_ci'" )
6868 ] )
69- . catch ( err => {
69+ . catch ( ( err ) => {
7070 return Promise . all ( [
7171 conn . query ( 'DROP TABLE IF EXISTS testn.perfTestTextPipe' ) ,
7272 conn . query ( sqlTable + " COLLATE='utf8mb4_unicode_ci'" )
7373 ] ) ;
7474 } )
75- . catch ( e => {
75+ . catch ( ( e ) => {
7676 console . log ( e ) ;
7777 throw e ;
7878 } ) ;
7979} ;
8080
81- module . exports . onComplete = function ( conn ) {
82- conn . query ( 'TRUNCATE TABLE testn.perfTestTextPipe' ) . catch ( e => {
81+ module . exports . onComplete = function ( conn ) {
82+ conn . query ( 'TRUNCATE TABLE testn.perfTestTextPipe' ) . catch ( ( e ) => {
8383 console . log ( e ) ;
8484 throw e ;
8585 } ) ;
0 commit comments