alasql 4.1.8 → 4.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/alasql.fs.js CHANGED
@@ -1,7 +1,7 @@
1
- //! AlaSQL v4.1.7 build: develop-fcae8eb7 | © 2014-2023 Andrey Gershun & Mathias Wulff | License: MIT
1
+ //! AlaSQL v4.1.9 build: develop-a3395d54 | © 2014-2023 Andrey Gershun & Mathias Wulff | License: MIT
2
2
  /*
3
3
  @module alasql
4
- @version 4.1.7
4
+ @version 4.1.9
5
5
 
6
6
  AlaSQL - JavaScript SQL database
7
7
  © 2014-2023 Andrey Gershun & Mathias Wulff
@@ -29,7 +29,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
29
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
30
  SOFTWARE.
31
31
  */
32
-
33
32
  /* eslint-disable */
34
33
 
35
34
  "use strict";
@@ -142,8 +141,8 @@ var alasql = function(sql, params, cb, scope) {
142
141
  Current version of alasql
143
142
  @constant {string}
144
143
  */
145
- alasql.version = '4.1.7';
146
- alasql.build = 'develop-fcae8eb7';
144
+ alasql.version = '4.1.9';
145
+ alasql.build = 'develop-a3395d54';
147
146
 
148
147
  /**
149
148
  Debug flag
@@ -155,7 +154,6 @@ alasql.debug = undefined; // Initial debug variable
155
154
  var require = function(){return null}; // as alasqlparser.js is generated, we can not "remove" references to
156
155
  var __dirname = '';
157
156
  //*/
158
-
159
157
  /* parser generated by jison 0.4.18 */
160
158
  /*
161
159
  Returns a Parser object of the following structure:
@@ -3140,8 +3138,7 @@ exports.main = function commonjsMain (args) {
3140
3138
  if (typeof module !== 'undefined' && require.main === module) {
3141
3139
  exports.main(process.argv.slice(1));
3142
3140
  }
3143
- }
3144
- /**
3141
+ }/**
3145
3142
  12prettyflag.js - prettify
3146
3143
  @todo move this functionality to plugin
3147
3144
  */
@@ -4339,7 +4336,6 @@ var getXLSX = function () {
4339
4336
 
4340
4337
  // set AlaSQl path
4341
4338
  alasql.path = alasql.utils.findAlaSQLPath();
4342
-
4343
4339
  /**
4344
4340
  Strip all comments.
4345
4341
  @function
@@ -4424,7 +4420,6 @@ alasql.utils.uncomment = function (str) {
4424
4420
 
4425
4421
  return str;
4426
4422
  };
4427
-
4428
4423
  /**
4429
4424
  Database class for Alasql.js
4430
4425
  */
@@ -4927,7 +4922,6 @@ alasql.promise = function (sql, params) {
4927
4922
  }
4928
4923
  return promiseAll(sql);
4929
4924
  };
4930
-
4931
4925
  /*
4932
4926
  //
4933
4927
  // Database class for Alasql.js
@@ -5104,7 +5098,6 @@ Transaction.prototype.executeSQL = Transaction.prototype.exec;
5104
5098
  // Transaction.prototype.run = Database.prototype.exec;
5105
5099
 
5106
5100
  alasql.Transaction = Transaction;
5107
-
5108
5101
  /*
5109
5102
  //
5110
5103
  // Table class for Alasql.js
@@ -5162,7 +5155,6 @@ Table.prototype.indexColumns = function () {
5162
5155
  self.xcolumns[col.columnid] = col;
5163
5156
  });
5164
5157
  };
5165
-
5166
5158
  /*
5167
5159
  //
5168
5160
  // View class for Alasql.js
@@ -5257,7 +5249,6 @@ var yy = {
5257
5249
  };
5258
5250
 
5259
5251
  alasqlparser.yy = alasql.yy = yy;
5260
-
5261
5252
  /*
5262
5253
  //
5263
5254
  // Statements class for Alasql.js
@@ -5287,7 +5278,6 @@ yy.Statements = class Statements {
5287
5278
  };
5288
5279
  }
5289
5280
  };
5290
-
5291
5281
  /* global alasql */
5292
5282
  /* global yy */
5293
5283
  /*
@@ -6430,7 +6420,6 @@ var compileSearchOrder = function (order) {
6430
6420
  return new Function('a,b', s);
6431
6421
  }
6432
6422
  };
6433
-
6434
6423
  // Main query procedure
6435
6424
  function queryfn(query, oldscope, cb, A, B) {
6436
6425
  var aaa = query.sources.length;
@@ -6622,6 +6611,12 @@ function queryfn3(query) {
6622
6611
  if (!query.havingfn || query.havingfn(g, query.params, alasql)) {
6623
6612
 
6624
6613
  var d = query.selectgfn(g, query.params, alasql);
6614
+
6615
+ for (const key in query.groupColumns) {
6616
+ if (query.groupColumns[key] !== key
6617
+ && d[query.groupColumns[key]])
6618
+ delete d[query.groupColumns[key]]
6619
+ }
6625
6620
  query.data.push(d);
6626
6621
  }
6627
6622
  }
@@ -6888,7 +6883,7 @@ var preIndex = function (query) {
6888
6883
  // Check if index already exists
6889
6884
  var ixx =
6890
6885
  alasql.databases[source.databaseid].tables[source.tableid].indices[
6891
- hash(source.onrightfns + '`' + source.srcwherefns)
6886
+ hash(source.onrightfns + '`' + source.srcwherefns)
6892
6887
  ];
6893
6888
  if (!alasql.databases[source.databaseid].tables[source.tableid].dirty && ixx) {
6894
6889
  source.ix = ixx;
@@ -6943,7 +6938,7 @@ var preIndex = function (query) {
6943
6938
  // Check if index exists
6944
6939
  ixx =
6945
6940
  alasql.databases[source.databaseid].tables[source.tableid].indices[
6946
- hash(source.wxleftfns + '`')
6941
+ hash(source.wxleftfns + '`')
6947
6942
  ];
6948
6943
  }
6949
6944
  if (!alasql.databases[source.databaseid].tables[source.tableid].dirty && ixx) {
@@ -7041,7 +7036,6 @@ var preIndex = function (query) {
7041
7036
  }
7042
7037
  }
7043
7038
  };
7044
-
7045
7039
  //
7046
7040
  // Join all lines over sources
7047
7041
  //
@@ -7257,7 +7251,6 @@ function swapSources(query, h) {
7257
7251
  query.sources[h] = nextsource;
7258
7252
  query.sources[h + 1] = source;
7259
7253
  }
7260
-
7261
7254
  /*
7262
7255
  //
7263
7256
  // Select run-time part for Alasql.js
@@ -7814,7 +7807,6 @@ function modify(query, res) {
7814
7807
  }
7815
7808
  return res;
7816
7809
  }
7817
-
7818
7810
  /*
7819
7811
  //
7820
7812
  // EXISTS and other subqueries functions functions for Alasql.js
@@ -7872,7 +7864,6 @@ alasql.precompile = function (statement, databaseid, params) {
7872
7864
  });
7873
7865
  }
7874
7866
  };
7875
-
7876
7867
  /*
7877
7868
  //
7878
7869
  // Select compiler part for Alasql.js
@@ -8112,7 +8103,6 @@ alasql.prepareFromData = function (data, array) {
8112
8103
 
8113
8104
  return res;
8114
8105
  };
8115
-
8116
8106
  /*
8117
8107
  //
8118
8108
  // Select compiler part for Alasql.js
@@ -8244,7 +8234,12 @@ yy.Select.prototype.compileJoins = function (query) {
8244
8234
  // if(jn instanceof yy.Apply) {
8245
8235
  source.datafn = function (query, params, cb, idx, alasql) {
8246
8236
  // return cb(null,idx,alasql);
8247
- return source.subquery(query.params, null, cb, idx).data;
8237
+ source.data = source.subquery(query.params, null, cb, idx).data;
8238
+ // var res = alasql.prepareFromData(params[idx]);
8239
+ var res = source.data;
8240
+ // Propogate subquery result
8241
+ if (cb) res = cb(res, idx, query);
8242
+ return res;
8248
8243
  };
8249
8244
  // } else {
8250
8245
  // source.datafn = function(query, params, cb, idx, alasql) {
@@ -8492,7 +8487,6 @@ yy.Select.prototype.compileJoins = function (query) {
8492
8487
  });
8493
8488
 
8494
8489
  };
8495
-
8496
8490
  yy.Select.prototype.compileWhere = function (query) {
8497
8491
  if (this.where) {
8498
8492
  if (typeof this.where == 'function') {
@@ -8593,7 +8587,6 @@ function optimizeWhereJoin(query, ast) {
8593
8587
  }
8594
8588
  }
8595
8589
  }
8596
-
8597
8590
  /*
8598
8591
  //
8599
8592
  // Select compiler part for Alasql.js
@@ -8740,8 +8733,8 @@ yy.Select.prototype.compileGroup = function (query) {
8740
8733
  if ('funcid' in col.expression) {
8741
8734
  let colexp1 = colExpIfFunIdExists(col.expression);
8742
8735
 
8743
- return(`'${colas}': (typeof ${colexp1} == 'number' ? ${colexp} : typeof ${colexp1} == 'object' ?
8744
- typeof Number(${colexp1}) == 'number' && ${colexp1}!== null? ${colexp} : null : null),`);
8736
+ return `'${colas}': (typeof ${colexp1} == 'number' ? ${colexp} : typeof ${colexp1} == 'object' ?
8737
+ typeof Number(${colexp1}) == 'number' && ${colexp1}!== null? ${colexp} : null : null),`;
8745
8738
  }
8746
8739
  return `'${colas}': (typeof ${colexp} == 'number' ? ${colexp} : typeof ${colexp} == 'object' ?
8747
8740
  typeof Number(${colexp}) == 'number' && ${colexp}!== null? ${colexp} : null : null),`;
@@ -8915,7 +8908,7 @@ yy.Select.prototype.compileGroup = function (query) {
8915
8908
  if ('funcid' in col.expression) {
8916
8909
  let colexp1 = colExpIfFunIdExists(col.expression);
8917
8910
 
8918
- return(
8911
+ return (
8919
8912
  pre +
8920
8913
  `if((g['${colas}'] == null && ${colexp1}!== null) ? y = ${colexp} : (g['${colas}']!== null &&
8921
8914
  ${colexp1} == null) ? y = g['${colas}']:((y=${colexp}) < g['${colas}'])){ if(typeof y == 'number')
@@ -8940,7 +8933,7 @@ yy.Select.prototype.compileGroup = function (query) {
8940
8933
  if ('funcid' in col.expression) {
8941
8934
  let colexp1 = colExpIfFunIdExists(col.expression);
8942
8935
 
8943
- return(
8936
+ return (
8944
8937
  pre +
8945
8938
  `if((g['${colas}'] == null && ${colexp1}!== null) ? y = ${colexp} : (g['${colas}']!== null &&
8946
8939
  ${colexp1} == null) ? y = g['${colas}']:((y=${colexp}) > g['${colas}'])){ if(typeof y == 'number')
@@ -9034,7 +9027,6 @@ yy.Select.prototype.compileGroup = function (query) {
9034
9027
 
9035
9028
  return new Function('p,params,alasql', 'var y;' + s);
9036
9029
  };
9037
-
9038
9030
  /*
9039
9031
  //
9040
9032
  // Select compiler part for Alasql.js
@@ -9550,7 +9542,6 @@ yy.Select.prototype.compileRemoveColumns = function (query) {
9550
9542
  });
9551
9543
  }
9552
9544
  };
9553
-
9554
9545
  /* global yy */
9555
9546
 
9556
9547
  yy.Select.prototype.compileHaving = function (query) {
@@ -9565,7 +9556,6 @@ yy.Select.prototype.compileHaving = function (query) {
9565
9556
  return true;
9566
9557
  };
9567
9558
  };
9568
-
9569
9559
  yy.Select.prototype.compileOrder = function (query, params) {
9570
9560
  var self = this;
9571
9561
  self.orderColumns = [];
@@ -9721,7 +9711,6 @@ if(false) {
9721
9711
  return new Function('a,b', 'var y;' + s);
9722
9712
  }
9723
9713
  };
9724
-
9725
9714
  // Pivot functions
9726
9715
  /**
9727
9716
  Compile Pivot functions
@@ -9911,7 +9900,6 @@ yy.Select.prototype.compileUnpivot = function (query) {
9911
9900
  // });
9912
9901
  };
9913
9902
  };
9914
-
9915
9903
  /*
9916
9904
  //
9917
9905
  // ROLLUP(), CUBE(), GROUPING SETS() for Alasql.js
@@ -10067,7 +10055,6 @@ function decartes(gv, query) {
10067
10055
  }
10068
10056
 
10069
10057
  }
10070
-
10071
10058
  /*
10072
10059
  //
10073
10060
  // Select run-time part for Alasql.js
@@ -10148,7 +10135,6 @@ yy.Select.prototype.compileDefCols = function (query, databaseid) {
10148
10135
 
10149
10136
  return defcols;
10150
10137
  };
10151
-
10152
10138
  /*
10153
10139
  //
10154
10140
  // UNION for Alasql.js
@@ -10172,7 +10158,6 @@ yy.Union = class Union {
10172
10158
  return null;
10173
10159
  }
10174
10160
  };
10175
-
10176
10161
  /*
10177
10162
  //
10178
10163
  // CROSS AND OUTER APPLY for Alasql.js
@@ -10194,7 +10179,6 @@ yy.Apply = class Apply {
10194
10179
  return s;
10195
10180
  }
10196
10181
  };
10197
-
10198
10182
  /*
10199
10183
  //
10200
10184
  // CROSS AND OUTER APPLY for Alasql.js
@@ -10221,7 +10205,6 @@ yy.Over = class Over {
10221
10205
  return s;
10222
10206
  }
10223
10207
  };
10224
-
10225
10208
  /*
10226
10209
  //
10227
10210
  // Expressions for Alasql.js
@@ -11267,7 +11250,6 @@ yy.Over = class Over {
11267
11250
  View,
11268
11251
  });
11269
11252
  }
11270
-
11271
11253
  // Alasql Linq library
11272
11254
 
11273
11255
  yy.FromData = function (params) {
@@ -11433,7 +11415,6 @@ yy.Select.prototype.Where = function (expr) {
11433
11415
  }
11434
11416
  return self;
11435
11417
  };
11436
-
11437
11418
  /*
11438
11419
  //
11439
11420
  // Functions for Alasql.js
@@ -11895,7 +11876,6 @@ stdfn.NEWID =
11895
11876
  lut[(d3 >> 24) & 0xff]
11896
11877
  );
11897
11878
  };
11898
-
11899
11879
  /*
11900
11880
  //
11901
11881
  // CASE for Alasql.js
@@ -11969,7 +11949,6 @@ yy.CaseValue.prototype.toJS = function (context, tableid, defcols) {
11969
11949
 
11970
11950
  return s;
11971
11951
  };
11972
-
11973
11952
  /*
11974
11953
  //
11975
11954
  // JSON for Alasql.js
@@ -12078,7 +12057,6 @@ yy.Json.prototype.toJS = function (context, tableid, defcols) {
12078
12057
  // TODO redo
12079
12058
  return JSONtoJS(this.value, context, tableid, defcols);
12080
12059
  };
12081
-
12082
12060
  /*
12083
12061
  //
12084
12062
  // CAST and CONVERT functions
@@ -12137,18 +12115,18 @@ function structuredDate(unFormattedDate) {
12137
12115
  var formattedSeconds = ('0' + unFormattedDate.getSeconds()).substr(-2);
12138
12116
  var formattedMilliseconds = ('00' + unFormattedDate.getMilliseconds()).substr(-3);
12139
12117
  return {
12140
- month: month,
12141
- year: year,
12142
- fullYear: fullYear,
12143
- date: date,
12144
- day: day,
12145
- formattedDate: formattedDate,
12146
- formattedMonth: formattedMonth,
12147
- formattedYear: formattedYear,
12148
- formattedHour: formattedHour,
12149
- formattedMinutes: formattedMinutes,
12150
- formattedSeconds: formattedSeconds,
12151
- formattedMilliseconds: formattedMilliseconds,
12118
+ month,
12119
+ year,
12120
+ fullYear,
12121
+ date,
12122
+ day,
12123
+ formattedDate,
12124
+ formattedMonth,
12125
+ formattedYear,
12126
+ formattedHour,
12127
+ formattedMinutes,
12128
+ formattedSeconds,
12129
+ formattedMilliseconds,
12152
12130
  };
12153
12131
  }
12154
12132
 
@@ -12157,7 +12135,7 @@ function structuredDate(unFormattedDate) {
12157
12135
  */
12158
12136
  alasql.stdfn.CONVERT = function (value, args) {
12159
12137
  var val = value;
12160
- var udbtypeid = args.dbtypeid.toUpperCase();
12138
+ var udbtypeid = args.dbtypeid?.toUpperCase();
12161
12139
 
12162
12140
  var t;
12163
12141
  var s;
@@ -12293,7 +12271,6 @@ alasql.stdfn.CONVERT = function (value, args) {
12293
12271
  }
12294
12272
  return val;
12295
12273
  };
12296
-
12297
12274
  /*
12298
12275
  //
12299
12276
  // CREATE TABLE for Alasql.js
@@ -12969,7 +12946,6 @@ yy.CreateTable.prototype.execute = function (databaseid, params, cb) {
12969
12946
  if (cb) res = cb(res);
12970
12947
  return res;
12971
12948
  };
12972
-
12973
12949
  //
12974
12950
  // Date functions
12975
12951
  //
@@ -12992,7 +12968,7 @@ stdfn.ASCII = function (a) {
12992
12968
  return a.charCodeAt(0);
12993
12969
  };
12994
12970
 
12995
- /**
12971
+ /**
12996
12972
  Return first non-null argument
12997
12973
  See https://msdn.microsoft.com/en-us/library/ms190349.aspx
12998
12974
  */
@@ -13093,7 +13069,7 @@ var PERIODS = {
13093
13069
 
13094
13070
  alasql.stdfn.DATEDIFF = function (period, d1, d2) {
13095
13071
  var interval = newDate(d2).getTime() - newDate(d1).getTime();
13096
- return interval / PERIODS[period.toLowerCase()];
13072
+ return (interval / PERIODS[period.toLowerCase()]) | 0;
13097
13073
  };
13098
13074
 
13099
13075
  alasql.stdfn.DATEADD = function (period, interval, d) {
@@ -13141,7 +13117,6 @@ function newDate(d) {
13141
13117
  }
13142
13118
  return new Date(d);
13143
13119
  }
13144
-
13145
13120
  /*
13146
13121
  //
13147
13122
  // DROP TABLE for Alasql.js
@@ -13252,7 +13227,6 @@ yy.TruncateTable.prototype.execute = function (databaseid, params, cb) {
13252
13227
  }
13253
13228
  return cb ? cb(0) : 0;
13254
13229
  };
13255
-
13256
13230
  /*
13257
13231
  //
13258
13232
  // CREATE VERTEX for AlaSQL
@@ -13691,7 +13665,6 @@ yy.CreateGraph.prototype.compile1 = function (databaseid) {
13691
13665
  };
13692
13666
  return statement;
13693
13667
  };
13694
-
13695
13668
  /*
13696
13669
  //
13697
13670
  // ALTER TABLE for Alasql.js
@@ -13854,7 +13827,6 @@ yy.AlterTable.prototype.execute = function (databaseid, params, cb) {
13854
13827
  throw Error('Unknown ALTER TABLE method');
13855
13828
  }
13856
13829
  };
13857
-
13858
13830
  /*
13859
13831
  //
13860
13832
  // CREATE TABLE for Alasql.js
@@ -13947,7 +13919,6 @@ yy.Reindex.prototype.execute = function (databaseid, params, cb) {
13947
13919
  if (cb) res = cb(res);
13948
13920
  return res;
13949
13921
  };
13950
-
13951
13922
  /*
13952
13923
  //
13953
13924
  // DROP TABLE for Alasql.js
@@ -13970,7 +13941,6 @@ yy.DropIndex.prototype.compile = function (db) {
13970
13941
  return 1;
13971
13942
  };
13972
13943
  };
13973
-
13974
13944
  /*
13975
13945
  //
13976
13946
  // WITH SELECT for Alasql.js
@@ -14061,7 +14031,6 @@ yy.If.prototype.execute = function (databaseid, params, cb) {
14061
14031
  // else res = this.elsestat.execute(databaseid,params,cb,scope);
14062
14032
  return res;
14063
14033
  };
14064
-
14065
14034
  /*
14066
14035
  //
14067
14036
  // CREATE VIEW for Alasql.js
@@ -14164,7 +14133,6 @@ yy.BeginEnd.prototype.execute = function (databaseid, params, cb, scope) {
14164
14133
  }
14165
14134
  return res;
14166
14135
  };
14167
-
14168
14136
  /*
14169
14137
  //
14170
14138
  // INSERT for Alasql.js
@@ -14437,7 +14405,6 @@ yy.Insert.prototype.execute = function (databaseid, params, cb) {
14437
14405
  return this.compile(databaseid)(params, cb);
14438
14406
  // throw new Error('Insert statement is should be compiled')
14439
14407
  };
14440
-
14441
14408
  /*
14442
14409
  //
14443
14410
  // TRIGGER for Alasql.js
@@ -14548,7 +14515,6 @@ yy.DropTrigger.prototype.execute = function (databaseid, params, cb) {
14548
14515
  if (cb) res = cb(res);
14549
14516
  return res;
14550
14517
  };
14551
-
14552
14518
  /*
14553
14519
  //
14554
14520
  // DELETE for Alasql.js
@@ -14705,7 +14671,6 @@ yy.Delete.prototype.compile = function (databaseid) {
14705
14671
  yy.Delete.prototype.execute = function (databaseid, params, cb) {
14706
14672
  return this.compile(databaseid)(params, cb);
14707
14673
  };
14708
-
14709
14674
  /*
14710
14675
  //
14711
14676
  // UPDATE for Alasql.js
@@ -14817,7 +14782,6 @@ yy.Update.prototype.compile = function (databaseid) {
14817
14782
  yy.Update.prototype.execute = function (databaseid, params, cb) {
14818
14783
  return this.compile(databaseid)(params, cb);
14819
14784
  };
14820
-
14821
14785
  /*
14822
14786
  //
14823
14787
  // SET for Alasql.js
@@ -14873,7 +14837,6 @@ yy.Merge.prototype.execute = function (databaseid, params, cb) {
14873
14837
  if (cb) res = cb(res);
14874
14838
  return res;
14875
14839
  };
14876
-
14877
14840
  /*
14878
14841
  //
14879
14842
  // UPDATE for Alasql.js
@@ -15098,7 +15061,6 @@ yy.DropDatabase.prototype.execute = function (databaseid, params, cb) {
15098
15061
  if (cb) cb(res);
15099
15062
  return res;
15100
15063
  };
15101
-
15102
15064
  /*
15103
15065
  //
15104
15066
  // SET for Alasql.js
@@ -15171,7 +15133,6 @@ yy.Declare.prototype.execute = function (databaseid, params, cb) {
15171
15133
  }
15172
15134
  return res;
15173
15135
  };
15174
-
15175
15136
  /*
15176
15137
  //
15177
15138
  // SHOW for Alasql.js
@@ -15318,7 +15279,6 @@ yy.ShowCreateTable.prototype.execute = function (databaseid) {
15318
15279
  throw new Error('There is no such table "' + this.table.tableid + '"');
15319
15280
  }
15320
15281
  };
15321
-
15322
15282
  /*
15323
15283
  //
15324
15284
  // SET for Alasql.js
@@ -15410,7 +15370,6 @@ yy.SetVariable.prototype.execute = function (databaseid, params, cb) {
15410
15370
  if (cb) res = cb(res);
15411
15371
  return res;
15412
15372
  };
15413
-
15414
15373
  alasql.test = function (name, times, fn) {
15415
15374
  if (arguments.length === 0) {
15416
15375
  alasql.log(alasql.con.results);
@@ -15710,7 +15669,6 @@ alasql.prompt = function (el, useidel, firstsql) {
15710
15669
  }
15711
15670
  };
15712
15671
  };
15713
-
15714
15672
  /*
15715
15673
  //
15716
15674
  // Commit for Alasql.js
@@ -15771,7 +15729,6 @@ yy.RollbackTransaction.prototype.execute = function (databaseid, params, cb) {
15771
15729
  if (cb) cb(res);
15772
15730
  return res;
15773
15731
  };
15774
-
15775
15732
  if (alasql.options.tsql) {
15776
15733
  //
15777
15734
  // Check tables and views
@@ -15807,7 +15764,6 @@ if (alasql.options.tsql) {
15807
15764
  return undefined;
15808
15765
  };
15809
15766
  }
15810
-
15811
15767
  if (alasql.options.mysql) {
15812
15768
  alasql.fn.TIMESTAMPDIFF = function (unit, date1, date2) {
15813
15769
  return alasql.stdfn.DATEDIFF(unit, date1, date2);
@@ -15836,16 +15792,12 @@ if (alasql.options.mysql || alasql.options.sqlite) {
15836
15792
  throw new Error('Unknown INFORMATION_SCHEMA table');
15837
15793
  };
15838
15794
  }
15839
-
15840
15795
  if (alasql.options.postgres) {
15841
15796
  }
15842
-
15843
15797
  if (alasql.options.oracle) {
15844
15798
  }
15845
-
15846
15799
  if (alasql.options.sqlite) {
15847
15800
  }
15848
-
15849
15801
  //
15850
15802
  // into functions
15851
15803
  //
@@ -16102,7 +16054,6 @@ alasql.into.CSV = function (filename, opts, data, columns, cb) {
16102
16054
  }
16103
16055
  return res;
16104
16056
  };
16105
-
16106
16057
  //
16107
16058
  // 831xl.js - Coloring Excel
16108
16059
  // 18.04.2015
@@ -16427,7 +16378,6 @@ alasql.into.XLS = function (filename, opts, data, columns, cb) {
16427
16378
  return s;
16428
16379
  }
16429
16380
  };
16430
-
16431
16381
  alasql.into.XLSXML = function (filename, opts, data, columns, cb) {
16432
16382
  opts = opts || {};
16433
16383
 
@@ -16781,7 +16731,6 @@ alasql.into.XLSXML = function (filename, opts, data, columns, cb) {
16781
16731
  return s1 + s2 + s3;
16782
16732
  }
16783
16733
  };
16784
-
16785
16734
  /**
16786
16735
  Export to XLSX function
16787
16736
  @function
@@ -16973,7 +16922,6 @@ alasql.into.XLSX = function (filename, opts, data, columns, cb) {
16973
16922
 
16974
16923
  }
16975
16924
  };
16976
-
16977
16925
  /*
16978
16926
  //
16979
16927
  // FROM functions Alasql.js
@@ -17457,7 +17405,6 @@ alasql.from.ODS = function (filename, opts, cb, idx, query) {
17457
17405
  opts.autoExt = false;
17458
17406
  return XLSXLSX(getXLSX(), filename, opts, cb, idx, query);
17459
17407
  };
17460
-
17461
17408
  alasql.from.XML = function (filename, opts, cb, idx, query) {
17462
17409
  var res;
17463
17410
 
@@ -17623,7 +17570,6 @@ function xmlparse(xml) {
17623
17570
  return 0 == xml.indexOf(prefix);
17624
17571
  }
17625
17572
  }
17626
-
17627
17573
  alasql.from.GEXF = function (filename, opts, cb, idx, query) {
17628
17574
  var res;
17629
17575
  alasql('SEARCH FROM XML(' + filename + ')', [], function (data) {
@@ -17633,7 +17579,6 @@ alasql.from.GEXF = function (filename, opts, cb, idx, query) {
17633
17579
  });
17634
17580
  return res;
17635
17581
  };
17636
-
17637
17582
  /*
17638
17583
  //
17639
17584
  // HELP for Alasql.js
@@ -17701,7 +17646,6 @@ yy.Print.prototype.execute = function (databaseid, params, cb) {
17701
17646
  if (cb) res = cb(res);
17702
17647
  return res;
17703
17648
  };
17704
-
17705
17649
  /*
17706
17650
  //
17707
17651
  // HELP for Alasql.js
@@ -17739,7 +17683,6 @@ yy.Source.prototype.execute = function (databaseid, params, cb) {
17739
17683
  );
17740
17684
  return res;
17741
17685
  };
17742
-
17743
17686
  /*
17744
17687
  //
17745
17688
  // HELP for Alasql.js
@@ -17813,7 +17756,6 @@ yy.Require.prototype.execute = function (databaseid, params, cb) {
17813
17756
  }
17814
17757
  return res;
17815
17758
  };
17816
-
17817
17759
  /*
17818
17760
  //
17819
17761
  // HELP for Alasql.js
@@ -17849,7 +17791,6 @@ yy.Assert.prototype.execute = function (databaseid) {
17849
17791
  }
17850
17792
  return 1;
17851
17793
  };
17852
-
17853
17794
  //
17854
17795
  // 91indexeddb.js
17855
17796
  // AlaSQL IndexedDB module
@@ -18210,7 +18151,6 @@ IDB.updateTable = function (databaseid, tableid, assignfn, wherefn, params, cb)
18210
18151
  };
18211
18152
  };
18212
18153
  };
18213
-
18214
18154
  //
18215
18155
  // 91localstorage.js
18216
18156
  // localStorage and DOM-Storage engine
@@ -18664,7 +18604,6 @@ LS.rollback = function (databaseid, cb) {
18664
18604
  // }
18665
18605
 
18666
18606
  };
18667
-
18668
18607
  //
18669
18608
  // 93sqlite.js
18670
18609
  // SQLite database support
@@ -18775,7 +18714,6 @@ SQLITE.intoTable = function (databaseid, tableid, value, columns, cb) {
18775
18714
  if (cb) cb(res);
18776
18715
  return res;
18777
18716
  };
18778
-
18779
18717
  //
18780
18718
  // 91localstorage.js
18781
18719
  // localStorage and DOM-Storage engine
@@ -19027,9 +18965,7 @@ FS.rollback = function (databaseid, cb) {
19027
18965
  // if(!alasql.options.autocommit) {
19028
18966
 
19029
18967
  };
19030
-
19031
18968
  if(utils.isBrowser && !utils.isWebWorker) {
19032
-
19033
18969
  alasql = alasql || false;
19034
18970
 
19035
18971
  if (!alasql) {
@@ -19106,7 +19042,6 @@ if (typeof Worker !== 'undefined') {
19106
19042
  }
19107
19043
  };
19108
19044
  }
19109
-
19110
19045
  /* FileSaver.js
19111
19046
  * A saveAs() FileSaver implementation.
19112
19047
  * 1.3.2
@@ -19306,7 +19241,6 @@ if (typeof module !== 'undefined' && module.exports) {
19306
19241
  return saveAs;
19307
19242
  });
19308
19243
  }
19309
-
19310
19244
  /* eslint-disable */
19311
19245
 
19312
19246
  /*