UNPKG

alasql

Version:

AlaSQL.js - JavaScript SQL database library for relational and graph data manipulation with support of localStorage, IndexedDB, and Excel

23 lines (20 loc) 473 B
/* // // CROSS AND OUTER APPLY for Alasql.js // Date: 03.11.2014 // (c) 2014, Andrey Gershun // */ yy.Over = function (params) { return yy.extend(this, params); } yy.Over.prototype.toString = function () { var s = K('OVER')+' ('; if(this.partition) { s += K('PARTITION')+' '+K('BY')+' '+this.partition.toString(); if(this.order) s+=' '; } if(this.order) { s += K('ORDER')+' '+K('BY')+' '+this.order.toString(); } s += ')'; return s; };