颜色循环C#布尼夫

时间:2018-06-30 05:10:32

标签: bunifu

我需要帮助使我的色彩循环持续不断而不会停止

我试图循环计时器,但使用Bunifu也不起作用

  async function abcEntireSuccess1() {
  console.log("function called")
   const db = new Database();
   await db.query(`select * from TRANSACTION_PAYLOAD where INTERFACE_NAME
    = 'Abc' AND (STATUS ='SUCCESS_RESPONSE')`
    ).then(rows => {

    console.log("closed connection");

    console.log("yessss",rows)
    return rows;

     });
    };

   class Database {
   constructor() {

      this.connection = mysql.createConnection({
        host: "127.0.0.1",
        user: "abc",
        password: "abc",
        database: "DB"
      });

    }


  query(sql, args) {
    console.log("sql is", sql)
    return new Promise((resolve, reject) => {
        this.connection.query(sql, (err, rows) => {
            console.log("connection function called")
            if (err) {
                console.log("error is", err)
                return reject(err);
            }

            console.log("rows are",rows);
            resolve(rows);
        });
       });
     }
   close() {

     console.log("calling connection close")
     return new Promise((resolve, reject) => {
        console.log("called connection close")
        this.connection.end(err => {
            if (err){
                return reject(err);
            }

            resolve();
        });
     });
     }
     }

0 个答案:

没有答案