This commit is contained in:
Guillermo Bonet 2022-10-04 14:47:14 +02:00
parent 2c7cce4b36
commit e3a6f97a51
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
async function printServer(){
const stmt = new ParameterizedSQL(
`SELECT * FROM campaign`);
stmt.merge(conn.makeWhere(filter.where));
stmt.merge('GROUP BY code');
stmt.merge(conn.makePagination(filter));
return conn.executeStmt(stmt);
}
setInterval(printServer, 2000);

View File

@ -0,0 +1,2 @@
SELECT *
FROM vn.printQueue;