ROWTYPE Helper

ROWTYPE helper will be used to declare rowtype variable.

You might be interested in ROWTYPE Record Declaration.

ROWTYPE Helper Function Definition

var ROWTYPE = (stmt, binds = [], obj = new Object()) => {
      EXEC(`SELECT * FROM (${stmt}) LIMIT 0`,binds);
      for(let i = 1;i <= _RS.getColumnCount();i++)obj[_ROWS.getColumnName(i)] = null;
      return obj;
   };

Last updated