duckdb 0.6.2-dev6.0 → 0.6.2-dev623.0

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.
Files changed (40) hide show
  1. package/.mocharc.json +2 -2
  2. package/Makefile +8 -5
  3. package/README.md +17 -0
  4. package/binding.gyp +84 -58
  5. package/binding.gyp.in +88 -0
  6. package/configure +1 -7
  7. package/configure.py +126 -0
  8. package/filelist.cache +0 -0
  9. package/lib/duckdb.d.ts +29 -11
  10. package/lib/duckdb.js +6 -0
  11. package/package.json +1 -1
  12. package/src/connection.cpp +7 -1
  13. package/src/database.cpp +1 -3
  14. package/test/{affected.test.js → affected.test.ts} +8 -10
  15. package/test/{arrow.test.js → arrow.test.ts} +12 -11
  16. package/test/{data_type_support.test.js → data_type_support.test.ts} +36 -35
  17. package/test/{database_fail.test.js → database_fail.test.ts} +25 -24
  18. package/test/{each.test.js → each.test.ts} +10 -9
  19. package/test/{exec.test.js → exec.test.ts} +7 -6
  20. package/test/{extension.test.js → extension.test.ts} +20 -19
  21. package/test/{interrupt.test.js → interrupt.test.ts} +7 -7
  22. package/test/{jsdoc.test.js → jsdoc.test.ts} +19 -20
  23. package/test/{named_columns.test.js → named_columns.test.ts} +4 -6
  24. package/test/{null_error.test.js → null_error.test.ts} +5 -6
  25. package/test/{open_close.test.js → open_close.test.ts} +10 -10
  26. package/test/{parallel_insert.test.js → parallel_insert.test.ts} +6 -7
  27. package/test/{parquet.js → parquet.test.ts} +2 -4
  28. package/test/{pathnames.test.js → pathnames.test.ts} +24 -22
  29. package/test/{prepare.test.js → prepare.test.ts} +53 -50
  30. package/test/{query_result.test.js → query_result.test.ts} +4 -4
  31. package/test/{serialization.test.js → serialization.test.ts} +10 -9
  32. package/test/support/helper.ts +42 -0
  33. package/test/{syntax_error.test.js → syntax_error.test.ts} +4 -4
  34. package/test/{udf.test.js → udf.test.ts} +26 -25
  35. package/test/{unicode.test.js → unicode.test.ts} +23 -22
  36. package/src/duckdb.cpp +0 -343989
  37. package/src/duckdb.hpp +0 -32676
  38. package/src/parquet-amalgamation.cpp +0 -44462
  39. package/src/parquet-amalgamation.hpp +0 -7981
  40. package/test/support/helper.js +0 -37
@@ -1,37 +0,0 @@
1
- var assert = require('assert');
2
- var fs = require('fs');
3
- var pathExists = require('fs').existsSync || require('path').existsSync;
4
-
5
- exports.deleteFile = function(name) {
6
- try {
7
- fs.unlinkSync(name);
8
- } catch(err) {
9
- if (err.errno !== process.ENOENT && err.code !== 'ENOENT' && err.syscall !== 'unlink') {
10
- throw err;
11
- }
12
- }
13
- };
14
-
15
- exports.ensureExists = function(name,cb) {
16
- if (!pathExists(name)) {
17
- fs.mkdirSync(name);
18
- };
19
- }
20
-
21
- assert.fileDoesNotExist = function(name) {
22
- try {
23
- fs.statSync(name);
24
- } catch(err) {
25
- if (err.errno !== process.ENOENT && err.code !== 'ENOENT' && err.syscall !== 'unlink') {
26
- throw err;
27
- }
28
- }
29
- };
30
-
31
- assert.fileExists = function(name) {
32
- try {
33
- fs.statSync(name);
34
- } catch(err) {
35
- throw err;
36
- }
37
- };