duckdb 0.3.2-dev706.0 → 0.3.2-dev733.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.
package/binding.gyp CHANGED
@@ -8,6 +8,7 @@
8
8
  "src/connection.cpp",
9
9
  "src/statement.cpp",
10
10
  "src/utils.cpp",
11
+ "src/parquet-amalgamation.cpp",
11
12
  "src/duckdb.cpp" # comment this out to build against existing lib
12
13
  ],
13
14
  "include_dirs": [
package/configure CHANGED
@@ -6,12 +6,9 @@ set -x
6
6
  cd `dirname $0`
7
7
 
8
8
  if [ ! -f "../../scripts/amalgamation.py" ]; then
9
- echo "Could find neither the amalgamation build script"
9
+ echo "Could not find the amalgamation build script"
10
10
  exit 1
11
11
  fi
12
12
 
13
- (cd ../.. && python scripts/amalgamation.py --source=tools/nodejs/src/duckdb.cpp --header=tools/nodejs/src/duckdb.hpp)
14
- # (cd ../.. && python extension/parquet/parquet_amalgamation.py --source=tools/rpkg/src/parquet-extension.cpp --header=tools/rpkg/src/parquet-extension.h)
15
- # cp src/parquet-extension.h src/parquet-extension.h.tmp
16
- # sed 's/duckdb[.]hpp/duckdb.h/g' src/parquet-extension.h.tmp > src/parquet-extension.h
17
- # rm src/parquet-extension.h.tmp
13
+ (cd ../.. && python scripts/amalgamation.py --extended --source=tools/nodejs/src/duckdb.cpp --header=tools/nodejs/src/duckdb.hpp)
14
+ (cd ../.. && python scripts/parquet_amalgamation.py && cp src/amalgamation/parquet-amalgamation* tools/nodejs/src/)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
- "version": "0.3.2-dev706.0",
4
+ "version": "0.3.2-dev733.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/database.cpp CHANGED
@@ -1,4 +1,5 @@
1
1
  #include "duckdb_node.hpp"
2
+ #include "parquet-amalgamation.hpp"
2
3
 
3
4
  namespace node_duckdb {
4
5
 
@@ -28,6 +29,8 @@ struct OpenTask : public Task {
28
29
  void DoWork() override {
29
30
  try {
30
31
  Get<Database>().database = duckdb::make_unique<duckdb::DuckDB>(filename);
32
+ duckdb::ParquetExtension extension;
33
+ extension.Load(*Get<Database>().database);
31
34
  success = true;
32
35
 
33
36
  } catch (std::exception &ex) {