-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
794 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Andrey Gershun ([email protected]) | ||
Copyright (c) 2014-2015 Andrey Gershun ([email protected]) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "alasql", | ||
"description": "Alasql - JavaScript SQL database and data manipulation library", | ||
"version": "0.0.42", | ||
"version": "0.0.43", | ||
"author": "Andrey Gershun <[email protected]>", | ||
"directories": { | ||
"example": "examples", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
if(typeof exports === 'object') { | ||
var assert = require("assert"); | ||
var alasql = require('../alasql.js'); | ||
} else { | ||
__dirname = '.'; | ||
}; | ||
|
||
|
||
describe('Test 250 Index problem', function() { | ||
|
||
it('1. IN ()',function(done){ | ||
|
||
alasql(function(){/* | ||
CREATE TABLE tab0(pk INTEGER NOT NULL PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT); | ||
INSERT INTO tab0 VALUES(0,6,4.67,'wdbsg',4,2.89,'altmp'); | ||
CREATE TABLE tab1(pk INTEGER NOT NULL PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT); | ||
CREATE INDEX idx_tab1_4 on tab1 (col4); | ||
INSERT INTO tab1 SELECT * FROM tab0; | ||
DELETE FROM tab1 WHERE col4 > 2.27; | ||
*/}); | ||
|
||
var res = alasql('SELECT * from tab1'); | ||
console.log(res); | ||
|
||
|
||
// assert(res == false); | ||
|
||
done(); | ||
}); | ||
|
||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
if(typeof exports === 'object') { | ||
var assert = require("assert"); | ||
var alasql = require('../alasql.js'); | ||
} else { | ||
__dirname = '.'; | ||
}; | ||
|
||
|
||
describe('Test 251 Overwrite XLSX file', function() { | ||
|
||
it('1. Overwrite',function(done){ | ||
|
||
alasql('SELECT HOUR(NOW()), MINUTE(NOW()), SECOND(NOW()) \ | ||
INTO XLSX("test251.xlsx",{sourcefilename:"test251.xlsx", \ | ||
sheetid:"test2", range:"B3"})',[],function(res){ | ||
assert(res == 1); | ||
done(); | ||
}); | ||
|
||
}); | ||
|
||
}); | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
if(typeof exports === 'object') { | ||
var assert = require("assert"); | ||
var alasql = require('../alasql.js'); | ||
} else { | ||
__dirname = '.'; | ||
}; | ||
|
||
|
||
describe('Test 252 CREATE TABLE without column types', function() { | ||
|
||
it('1. Overwrite',function(done){ | ||
|
||
alasql('CREATE DATABASE test252; USE test252;'); | ||
alasql('CREATE TABLE sqlite_sequence(name,seq)'); | ||
alasql('INSERT INTO sqlite_sequence VALUES (1,10)'); | ||
alasql('INSERT INTO sqlite_sequence VALUES ("one","ten")'); | ||
var res = alasql('SELECT * FROM sqlite_sequence'); | ||
// console.log(res); | ||
|
||
assert.deepEqual(res,[ { name: 1, seq: 10 }, { name: 'one', seq: 'ten' } ]); | ||
done(); | ||
}); | ||
|
||
}); | ||
|